エンジニアとしての市場価値を測りませんか?PR

企業からあなたに合ったオリジナルのスカウトを受け取って、市場価値を測りましょう

75
60

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

gitでコミットの内容をissueにひもづける

Posted at

githubのissueでタスクなどを管理している場合、コミットをissueに紐付けたいかと思います。

その場合にどうするか。

コミットのコメントにissueの番号をつけるだけです。

# 501 バグ修正

これだけでOK!!!...かと思いましたが、実はダメでした。


Aborting commit due to empty commit message.

コミットメッセージが空だからコミット中止したよ!と。

実は、行頭の#というのはコミットログの中ではコメントとして認識されてしまうのです。

なので、下記のように、先頭にスペースをつける。
何か文字列を追加するなどして、この#はコメントの#って意味じゃないよ。
ということをgitに教えてあげる必要あります。

  • 先頭にスペースを入れる
 #501 バグ修正
  • 先頭に文字列を入れる
fix #501 バグ修正
75
60
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up

Qiita Conference 2025 will be held!: 4/23(wed) - 4/25(Fri)

Qiita Conference is the largest tech conference in Qiita!

Keynote Speaker

ymrl、Masanobu Naruse, Takeshi Kano, Junichi Ito, uhyo, Hiroshi Tokumaru, MinoDriven, Minorun, Hiroyuki Sakuraba, tenntenn, drken, konifar

View event details
75
60

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?