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)


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM