LoginSignup
0
0

【備忘録】git rm

Posted at

追跡対象ファイルを削除

Gitインデックスから追跡対象ファイルを削除する。
とはいうもののステージングされる。

$ git rm -r --cached .

git rm を取り消し

ステージングされた削除対象を戻せばいいだけ。
→ ステージングをまるっと無しにする。

$ git reset HEAD
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