save on merging two branch of git code example
Example 1: how to move unstaged changes to different branch
git stash
git checkout correct-branch
git stash pop
Example 2: git checkout branch on different remote
# First fetch all new_remote refs
git fetch new_remote
# Then
git checkout -b <branchname> --track new_remote/<branchname>