您好,欢迎来到伴沃教育。
搜索
您的当前位置:首页移除git下的untracked files

移除git下的untracked files

来源:伴沃教育

1.查看可以被删除的untracked files

git clean -f -n

2.删除untracked files

git clean -f

If you want to also remove directories, run git clean -f -d or git clean -fd

If you just want to remove ignored files, rungit clean -f -X or git clean -fX

If you want to remove ignored as well as non-ignored files, run git clean -f -x or git clean -fx

Note the case difference on the X for the two latter commands.

原内容出自stackoverflow,备份以便以后查询。

Copyright © 2019- bangwoyixia.com 版权所有 湘ICP备2023022004号-2

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务