How to remove local (untracked) files from the current Git working tree?

Posted in :

答案是 git clean -fdx

To remove untracked files / directories do:

git clean -fdx

-f – force

-d – directories too

-x – remove ignored files too ( don’t use this if you don’t want to remove ignored files)


 

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *