add an upstream git code example
Example 1: git push set upstream
git push --set-upstream origin <branch>
Example 2: git remote add upstream
git remote add upstream GIT_DIR
git push --set-upstream origin <branch>
git remote add upstream GIT_DIR