Answers for "how to move to latest commit"

5

move to last commit

git reset --hard HEAD
Posted by: Guest on May-12-2020
0

how to move to previous commit in git

git checkout <commit-id> .
git add .
git commit -m "Reverting to <commit-id>"
git push
Posted by: Guest on June-08-2021

Browse Popular Code Answers by Language