Answers for "how to move git branch to older commit on local"

-1

git move latest commit to new branch

git checkout existingbranch
git branch newBranch
git reset --hard HEAD~2 # go back 2 commits on existingBranch
Posted by: Guest on January-26-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language