git remote add upstream sync code example Example: git setup upstream $ git push -u <remote> <branch>