Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
git rm --cached と git reset HEAD を使用してファイルを削除しました。しかし、レポにプッシュしようとすると、まだそのファイルが追加されますか? そのファイルを完全に削除するにはどうすればよいですか?
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 からプッシュしないでください。 期待どおりに機能します。
git status
commit