如何清除git中Untracked files

git clean -f -d

Sample:

$ git status
# On branch test
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       .text
nothing added to commit but untracked files present (use "git add" to track)

$ git clean -f -d
Removing .text

$ git status
# On branch test
nothing to commit (working directory clean)


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章