Auto setup remote branch with Git
Every time I create a new branch and try to push it, Git asks to set the upstream branch. This means that Git wants to know which is the remote branch for the current local branch.
The command to set the upstream branch is:
The command to set the upstream branch is:
git branch --set-upstream-to <remote-branch>
But I don't want to manually set it every time. In my case, the remote branch always has the same name as the local branch. There is a way to configure Git to use the current branch as the remote branch:
git config --global push.autoSetupRemote true
#git
#til