update branch with another code example Example 1: move update from one branch to another git git stash pop Example 2: git update another branch git fetch origin master:master