Search code examples
gitgithubbranchpushgit-remote

Can't push branch to github


I forked a github repo and cloned the fork to my machine. Then I created a new branch from master called #25 (the issue's ID I want to fix). I fixed the bug and commited to by branch. Now I'm trying to push this branch to github, so I can send a pull request, but it doesn't work. Even though I followed the instructions, the branch won't show up on github.

$ git push origin #25
Everything up-to-date

I'm on the correct branch:

$ git branch
* #25
  master

And the commit was also successful:

$ git log
commit 083f15035feab5af1673ed3685e10cca6e24aeeb
Author: John Example <[email protected]>
Date:   Wed Dec 5 14:53:16 2012 +0100

    Fixed #25: Window now correctly resizes to fullscreen.

What am I doing wrong?


Solution

  • # - is a symbol used to prefix any comments i.e.

    $ ls
    $ ls #holymotherofgod
    

    Are exactly the same

    You have to escape it

    $ git push origin \#25