Explain the difference between an "Upstream" branch and a "Tracking" branch.
Last updated
Same relationship, two angles: the tracking branch is your local branch (e.g.
main), and the upstream is the remote branch it follows (e.g.origin/main).Set it with
git push -u origin mainorgit branch --set-upstream-to=origin/main.It enables bare
git pull/git pushwithout arguments and the ahead/behind status.