开发者

Git gui: how to push to a remote branch?

开发者 https://www.devze.com 2023-03-13 18:35 出处:网络
I have cloned a repository from github and checked out a remote branch.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 me

I have cloned a repository from github and checked out a remote branch. 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 doe开发者_JAVA百科sn't let me push to the branch, the only option is master.

I'm using git gui, and checking out the branch was very simple. 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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号