git清理untracked文件

创建日期: 2022-08-24 15:55 | 作者: 风波 | 浏览次数: 12 | 分类: Git

参考:http://t.zoukankan.com/xiaoerlang-p-4543487.html

git clean -f
git clean -fd
git clean -xfd
git clean -nxfd
git clean -nf
git clean -nfd

$ git clean -h
usage: git clean [-d] [-f] [-n] [-q] [-e <pattern>] [-x | -X] [--] <paths>...

    -q, --quiet           do not print names of files removed
    -n, --dry-run         dry run
    -f, --force           force
    -d                    remove whole directories
    -e, --exclude <pattern>
                          add <pattern> to ignore rules
    -x                    remove ignored files, too
    -X                    remove only ignored files
12 浏览
0 评论