LoginSignup
0
0

More than 3 years have passed since last update.

git reset --hard HEADしても残っているファイルを消す

Posted at

探している時に検索にかからない事が多いのでメモ。

# 確認
git clean -nd

# 実際に消す
git clean -fd

# gitignore されているファイルも消す場合
git clean -xfd

今居る階層以下が対象になるので、すべてのディレクトリを対象にする場合はそのリポジトリの根っこに移動する必要がある。

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