1

git rm --cached と git reset HEAD を使用してファイルを削除しました。しかし、レポにプッシュしようとすると、まだそのファイルが追加されますか? そのファイルを完全に削除するにはどうすればよいですか?

4

3 に答える 3

0
git rm <filename> will keep track of your file that you are deleting a file which is there in git repo and keeps track yes the behavior is right.

通常は削除する必要があります rm -rf will delete the file now . git status 削除したファイルを追加してcommit からプッシュしないでください。 期待どおりに機能します。

于 2016-11-22T18:28:55.843 に答える