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 clean -xdfを実行することは可能ですか? 私がやりたいことは、追跡されていないファイルをすべて削除し、特定のファイル拡張子を持つファイルを保持することです。
-eオプションを使用して、除外パターンを指定します。
-e
.txt例: これは、拡張子を持つものを除くすべての追跡されていないファイルを削除します:
.txt
git clean -xdfe *.txt