shell 排除目录时间:2021-08-25 23:42:551、新建文件 exclude.txt,在文件中写需要排除的目录(只需要目录名称,不需要路径) 2、--exclude-from='/data/www/vhosts/git_track/git-shell/ods-dev/exclude.txt'