how to putt 2 existing commits on a seperate branch code example Example: how to save updated commits to another branch git stash git checkout other-branch git stash pop