1
0
mirror of https://github.com/tiimgreen/github-cheat-sheet.git synced 2025-08-13 19:34:00 +02:00

Merge pull request #189 from stefandesu/patch-1

Fix mistake in Closing Issues via Commit Messages
This commit is contained in:
Tim Green
2018-08-10 10:36:50 +01:00
committed by GitHub

View File

@@ -256,7 +256,7 @@ https://github.com/rails/rails/blob/master/activemodel/lib/active_model.rb#L53-L
![Line Highlighting](http://i.imgur.com/8AhjrCz.png)
### Closing Issues via Commit Messages
If a particular commit fixes an issue, any of the keywords `fix/fixes/fixed`, `close/closes/closed` or `resolve/resolves/resolved`, followed by the issue number, will close the issue once it is committed to the master branch.
If a particular commit fixes an issue, any of the keywords `fix/fixes/fixed`, `close/closes/closed` or `resolve/resolves/resolved`, followed by the issue number, will close the issue once it is committed to the repository's default branch.
```bash
$ git commit -m "Fix screwup, fixes #12"