Answers for "move branch to older commit"

-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