git set upstream origin branch code example
Example 1: github set branch upstream
git push --set-upstream origin <remote-branch>
Example 2: git set upstream repository
$ git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git