29
25

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 3 years have passed since last update.

【Git】空コミットを作成する方法

29
Last updated at Posted at 2022-10-26

はじめに

空コミットを作成して空のプルリクエストを出すことで、
実装前に設計や概要などをレビュアーに共有したり相談することができます。

方法

オプションの-mを付けると便利です。

$ git commit --allow-empty -m "{コミットメッセージ}"

その後、いつものようにgit pushします。

29
25
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
29
25

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?