63
39

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 clean

Posted at

git cleanの使い方をメモ。

作業ディレクトリから追跡対象外のファイルを削除するコマンド

git clean -n

これで対象外ファイルを確認する。(実行はされていない。)

git clean -f PATH

PATHのファイルを削除。

git clean -f

カレントディレクトリのファイルを削除。

git clean -df

ディレクトリも削除。

63
39
2

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
63
39

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?