LoginSignup
1
0

More than 3 years have passed since last update.

[Git] 空のコミットを作成

Posted at

概要

通常変更点がない場合コミットできませんが、オプションを記述することで空のコミットができるらしいのでその方法をメモします。

方法

  • --allow--emptyを記述
$ git commit --allow--empty

コメントありもできます。

$ git commit -m '空のコミットです' --allow--empty
1
0
0

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
1
0