Search code examples
gitgithubremote-branch

Git gui: how to push to a remote branch?


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!


Solution

  • From the command line,

    git push -u origin branch-name
    

    Now in git gui you should have that branch come up