I know you can close issues by putting closes #1
or fixes #1
in the commit message. What is the best way to close multiple issues in the same commi
Note that, since January 2013, "Closing Issues via Commit Messages" has changed:
Now when you enter "Fixes #33
" in a commit message, issue 33 will only be closed once the commit is merged into your default branch (usually master
).
This is super useful because it means the issue's open / closed status will map to your default branch.
If the bug isn't fixed in your default branch, the issue will remain open.
Once the commit with the fix is merged into your default branch the issue will be automatically closed.You can use any of these keywords to close an issue via commit message:
close, closes, closed, fixes, fixed
As illustrated by the question "Closing a GitHub Issue while on a different branch", this causes some confusion at first.