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 <johnexample@gmail.com>
Date: Wed Dec 5 14:53:16 2012 +0100
Fixed #25: Window now correctly resizes to fullscreen.
What am I doing wrong?
# - is a symbol used to prefix any comments ie
$ ls
$ ls #holymotherofgod
Are exactly the same
You have to escape it
$ git push origin \#25
也许尝试
git flow feature finish #25
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.