With the newest version of Git 2.37.0, you can run just "git push" to push new branches. No more "--set-upstream origin". Enable with:
git config --global --add --bool push.autoSetupRemote true
git 移除每次推送要指定远程具体分支
2 min read
With the newest version of Git 2.37.0, you can run just "git push" to push new branches. No more "--set-upstream origin". Enable with:
git config --global --add --bool push.autoSetupRemote true