git中Untracked files如何清除

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

$ git clean -f -d
Removing .python-version

$ git status
# On branch test
nothing to commit (working directory clean)
posted @ 2017-04-13 22:23  ZhangRuoxu  阅读(10246)  评论(0编辑  收藏  举报