Ie: what's the equivalent of these:
git checkout -b my_new_local_branch # create a new local branch
git push --set-upstream origin my_new_local_branch # track / set upstream the new local branch to remote repo
but with one command?
This is configurable via the push.autoSetupRemote
setting. The --set-upstream
command will be given for you when you push. You will still need two commands, because making a branch and pushing it are very different things (and you wouldn't want them to be the same thing).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.