Git track branch status

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