What does ‘–set-upstream’ do?

To avoid confusion,recent versions of git deprecate this somewhat ambiguous –set-upstream optionin favor of a more verbose –set-upstream-to optionwith identical syntax and behavior. sets the default remote branch for the current local branch. Any future git pull command (with the current local branch checked-out),will attempt to bring in commits from the <remote-branch> into the current local branch. One way to avoid having to explicitly type –set-upstream / –set-upstream-to is … Read more