how to set up git local branch with git upstream code example Example: github set branch upstream git push --set-upstream origin <remote-branch>