Setting a local branch’s upstream tracking branch
Tracking branches link your local branch to a remote branch, enabling git pull and git push to work without specifying the remote and branch name each time. Here’s how to configure this. The basic command To set an upstream tracking branch for your current branch: git branch –set-upstream-to=origin/branch-name Or the shorter alias: git branch -u…
