git check current remote branch code example
Example 1: how to see remote branch git
git remote show origin
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 get remote branch
git fetch
git checkout test
Example 4: check upstream branch git
git status -sb