1
0

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で空コミットを行う方法

Posted at

WIPフローを用いて開発する際の覚書

WIPのプルリクを発行する最初のコミットや、親のコミットとの差分が無い状態で始めたいときに使ってます。
差分をステージングせずgit commit--allow-emptyを付与するだけでおk。
以下コマンド例

git commit -m "init" --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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?