For a while I was using
git push --set-upstream origin HEAD
when pushing a new branch to the remote, and wanting to track (which is like always the case)
but today I learned I can run this command
git config --global push.autoSetupRemote true
which means I can go back to easier to type (no need to copy and paste) "git push".
No comments:
Post a Comment