Pregunta

I have a remote repository on GitHub and usually fix several issues by using commits containing terms like "Fixes", "Closes", etc. For example:

git commit file -m "Fixes #123 closes #123 lorem ipsum"
git push origin mybranch

However, recently issues aren't being closed by these commits. I have to close them manually on GitHub.

Is there something wrong with the commit?

Best, and thanks in advance for any help

¿Fue útil?

Solución

I thought it was just me. You are indeed using the correct commit syntax as per the GitHub page But it will only close the issue when committed to the default branch. Which is the master branch by default. You can change your default branch if you'd like.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top