Git track branch status

Posted by Joe Enos on August 18, 2021 · 1 min read

If you type git status on a branch and don’t see the relationship to the origin, then you need to set the default upstream:

git branch --set-upstream-to origin/MyBranch

Thanks to this StackOverflow answer