Git gui: how to push to a remote branch?

GiH picture GiH · Jun 17, 2011 · Viewed 8.1k times · Source

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 doesn'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!

Answer

Adam Dymitruk picture Adam Dymitruk · Jun 17, 2011

From the command line,

git push -u origin branch-name

Now in git gui you should have that branch come up