Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在我自己的本地分支上进行开发。我一直在做很多承诺。如何将所有提交推送到不同的远程跟踪分支(与我的本地分支创建的分支不同)?
git push local_branch:remote_branch
git push origin localbranch:remotebranch
但最好先获取远程分支上发生的更改,将本地分支合并到其中,然后推送它。