git previous commit list code example
Example 1: git tag a previous commit
git tag -a v1.2 9fceb02 -m "Message here"
Example 2: git checkout previous commit
git reset --hard HEAD~10
To rollback 10 commits back:
git tag -a v1.2 9fceb02 -m "Message here"
git reset --hard HEAD~10
To rollback 10 commits back: