git create branch with specific commit
# Create a new branch from previous commit's hash
git branch develop 04c900c
# Push the new branch to remote repository
git push --set-upstream origin develop
# Checkout the new branch
git checkout develop
You can create the branch via a hash:
git branch branchname <sha1-of-commit>
Or by using a symbolic reference:
git branch branchname HEAD~3
To checkout the branch when creating it, use
git checkout -b branchname <sha1-of-commit or HEAD~3>
Also in C++:
- linux set python 3 as default
- ubuntu color picker
- install serverless framework
- centos install man pages
- shell redirect all to /dev/null
- start redis server
- bash command for unzipping tar.gz files
- batch file path
- windows del force yes
- xrandr non cambia la luminosità
- user no login centos
- grep print all after
- bash dynamic variable name
- git temporarily ignore changes to tracked file
- give full permission to folder and subfolders in linux
- command line calculate folder size
- pip install
- share a given window on android
- how to open gofer in command prompt
- graphql install
- upgrade shell tty
- awk field separator space
- remove postgresql ubuntu
- pm2 node start