git tag a previous commit
git tag -a v1.2 9fceb02 -m "Message here"
git tag a previous commit
git tag -a v1.2 9fceb02 -m "Message here"
git checkout previous commit
git reset --hard HEAD~10
To rollback 10 commits back:
after checking out a previous commit go back to latest commit
git checkout <commit hash> # go to previous commit
git revert <commit hash> # revert action of going to previous commit
git pull from previous commit
git checkout -b old-state 0d1d7fc32
git checkout previous commit
$ git reset --hard <commit_id>
git checkout previous commit HEAD
git checkout <commit_id>
git checkout -b <new branch> <commit_id>
git checkout HEAD~X // x is the number of commits to go back
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us