How do I reference an existing branch from an issue in GitHub?

Nerian picture Nerian · Nov 4, 2011 · Viewed 87.9k times · Source

Let's say I have a branch named feature/1. And also issue #1. I want to link that branch to that issue.

Is there a way to link that branch to that issue from the issue? Without making a commit.

Answer

fuzzyalej picture fuzzyalej · Nov 4, 2011

Directly from GitHub:

References

Certain references are auto-linked:

  • SHA: be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
  • User@SHA ref: mojombo@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
  • User/Project@SHA: mojombo/god@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
  • #Num: #1
  • User/#Num: mojombo#1
  • User/Project#Num: mojombo/god#1

It seems that directly (as in user/repo/branch) is not possible, but maybe by using the id of the tree?