![](/img/trans.png)
[英]Why does Git show my local “pull from remote” when I push my commit to the remote repo?
[英]Pull changes from remote Git repository and commit my branch to the remote repo
我的用例是。 我已经通过名为Feature A的分支对本地仓库进行了更改。远程仓库称为Origin。 对来源/母版进行了更改。 我需要与原始主机同步,并将我的更改(功能A)推送到远程存储库。
首先,您必须使用git fetch
从远程存储库加载数据。
然后,您可以使用git rebase origin/master
将本地更改移至本地存储库中的origin / master之上。
现在,使用git push
可以将分支feature A
推git push
远程存储库中。
如果您希望使用master推送,则必须使用以下语法: git push origin master
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.