set remote git upstream code example
Example 1: git remote list
git remote -v
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: git connect to remote repository
git init
git commit -m "[message]"
git remote add origin "github repository link"
git push -u origin master
Example 4: git setup upstream
$ git push -u <remote> <branch>
Example 5: git remote add upstream
git remote add upstream GIT_DIR