I use the following command to push to my remote branch:
(我使用以下命令推送到我的远程分支:)
git push origin sandbox
If I say
(如果我说)
git push origin
does that push changes in my other branches too, or does it only update my current branch?
(这会推动我的其他分支的变化,还是只更新我当前的分支?)
I have three branches: master
, production
and sandbox
. (我有三个分支: master
, production
和sandbox
。)
The git push
documentation is not very clear about this, so I'd like to clarify this for good.
(git push
文档对此并不十分清楚,所以我想澄清这一点。)
Which branches and remotes do the following git push
commands update exactly?
(哪些分支和遥控器执行以下git push
命令更新?)
git push
git push origin
origin
above is a remote.
(上面的origin
是遥远的。)
I understand that git push [remote] [branch]
will push only that branch to the remote.
(据我所知, git push [remote] [branch]
只会将该分支推送到远程。)
ask by PlagueHammer translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…