upstream git code example
Example 1: git push set upstream
git push --set-upstream origin <branch>
Example 2: how to check upstream git
$ git branch -vv
main aaf02f0 [main/master: ahead 25] Some other commit
* master add0a03 [jdsumsion/master] Some commit
Example 3: add upstream branch git
git remote add upstream [email protected]:some-gatekeeper-maintainer/some-project.git
Example 4: check upstream
git remote show origin
Example 5: check upstream branch git
git status -sb