What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2022-02-01 04:10:56
move commits to another branch
# Note: Any changes not committed will be lost. git branch newbranch # Create a new branch, saving the desired commits git reset --hard HEAD~3 # Move master back by 3 commits (Make sure you know how many commits you need to go back) git checkout ne... Add solution