简体   繁体   English

从本地分支,git push到另一个远程分支

[英]From a local branch, git push to a different remote branch

I have two remote branches remote/A, remote/B. 我有两个远程分支remote / A,remote / B。 I pulled them locally and have two branches A, B. Now I modified B and wanted to push it to remote/A. 我将它们拉到本地,并有两个分支A,B。现在我修改了B,并希望将其推送到远程/ A。 How do I do it? 我该怎么做?

假设您的遥控器被命名为origin

git push origin B:A

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM