Answers for "revert branch to commit"

0

revert to commit git

# This will detach your HEAD, that is, leave you with no branch checked out:
git checkout 0d1d7fc32
Posted by: Guest on April-10-2020
0

git command change to previous comit

git checkout <commit_id>
git checkout -b <new branch> <commit_id>
git checkout HEAD~X // x is the number of commits t go back
Posted by: Guest on December-08-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language