LoginSignup
0
0

More than 3 years have passed since last update.

Gitで「 fatal: not removing 'second.txt' recursively without -r 」エラー

Posted at

GitとGitHubの学習中にエラーが発生したため、学習記録として記録します。

ターミナルにて、
git rm [ディレクトリ名]
git rm --cached [ディレクトリ名]
入力後に発生。

git rm second.txt
fatal: not removing 'second.txt' recursively without -r

recursively without -rをGoogle翻訳すると、
スクリーンショット 2021-01-01 22.09.44.png
となっていたので試しにgit rm -rで実行。

 git rm -r second.txt
rm 'second.txt/text1'
git rm -r --cached second.txt
rm 'second.txt/text1'

今度は成功しました😊

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