简体   繁体   English

Git Gui:如何推送到远程分支?

[英]Git gui: how to push to a remote branch?

I have cloned a repository from github and checked out a remote branch. 我已经从github克隆了一个存储库,并签出了一个远程分支。 I made a change to the remote branch, committed it, but then when I try to push the change back to the remote branch I get the message "Everything is up-to-date". 我对远程分支进行了更改,然后提交了,但是当我尝试将更改推回远程分支时,我收到消息“一切都是最新的”。 What am I doing wrong here? 我在这做错了什么? Plus, it doesn't let me push to the branch, the only option is master. 另外,它不允许我推送到分支,唯一的选择是master。

I'm using git gui, and checking out the branch was very simple. 我正在使用git gui,签出分支非常简单。 I just can't figure out how to push the change back to the repository. 我只是不知道如何将更改推回存储库。 Any help is appreciated, thanks! 任何帮助表示赞赏,谢谢!

From the command line, 在命令行中

git push -u origin branch-name

Now in git gui you should have that branch come up 现在在git gui中,您应该有该分支

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

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