LoginSignup
0
0

More than 1 year has passed since last update.

【Git】初回コミットを削除する方法

Posted at

削除方法

以下のコマンドを実行すると初回コミットを削除できます。

git update-ref -d HEAD

2回目以降のコミットの含めて削除されます。

すでにpush済みの場合にはgit push -fする必要があります。

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