Closing a GitHub Issue while on a different branch

梦想与她 提交于 2019-12-05 00:05:14

i'm pretty sure github issues are agnostic of branches.

are you talking about a local branch or a tracking branch? if your not specifically tracking the branch on github, the branch will not be pushed - thus github will not see your close #XXX command. here's some info on remote branches from the progit book http://git-scm.com/book/en/Git-Branching-Remote-Branches

UPDATE

i emailed this problem to the github support staff and they confirmed this is expected behavior. here's the response i got from them:

It is because of a recent change we made. Issues are only closed when the commits are merged to the default branch of your repository. I am sorry for the confusion.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!