[EN][TIPS] Relating issue and commits in GitHub

1768 단어 영어GitHub
Have you ever had troubles looking back at your old commits, looking for when you have made certain change?

Sometimes when we look back at commits, we face trouble that we do NOT know in which commit we made change, and which commit was related to which issue.

And when this kind of things happen, we will not be able to check diffs, or even roll-back, just because we don't know when & where the change was made.

So, to resolve that kind of problems, lets use a small tip that will eventually save your day.

Relating commits with issue



All you need to do to relate issue & commit is just write a bit on your commit message.

All you need, is just add #<issue-number> in your commit message.

For example, write commit message like this.edit readme for "Relate issue and Commits" sample #1
By putting #1 at the end of commit message, this commit will be related with Issue or PullRequest #1.

And when you push your changes, this commit message will be shown in the Issue/PullRequest page, as shown in the image below.



You can check the actual sample issue here
htps : // 기주 b. 코 m/타 bぇ-cぉth/씨 d보 x/이스에 s/1

And now we are done!
Have a nice day

좋은 웹페이지 즐겨찾기