tags:

views:

799

answers:

2

Is it somehow possible to automatically have a link to GitHub issue number in the git commit message?

+2  A: 

It is a requested feature on the github-issue tracker but I don't know if it has been implemented. It is not marked as closed.

Mihai A
+9  A: 

If you want to link to a GitHub issue and close the issue, you can provide the following lines in your Git commit message:

Closes #1.
Closes GH-1.
Closes gh-1.

(Any of the three will work.) Note that this will link to the issue and also close it. You can find out more in this blog post (start watching the embedded video at about 1:40).

I'm not sure if a similar syntax will simply link to an issue without closing it.

mipadi