本文共 714 字,大约阅读时间需要 2 分钟。
svn 目录清理
I have a local svn repository. I work in the repository, e.g. compiling documents and building packages, and there are many useless temporary there. How can I clean it up by automatically clean these temporary files like the git clean -f
in git?
我有一个本地svn存储库。 我在仓库中,如编制工作, 文档和构建的软件包,并有许多无用的临时存在。 如何通过自动清除git clean -f
等这些临时文件来清理它?
svn seems has no built-in function for this. But you can remove untracked files like this:
svn似乎没有内置功能。 但是您可以删除未跟踪的文件,如下所示:
svn st | grep '^?' | awk '{print $2}' | xargs -I{} rm -rf '{}'
In the svn st
command’s results, the untracked files are marked with ?
at the beginning of the lines of outputs.
在svn st
命令的结果中,未跟踪的文件标记为?
在输出行的开头。
翻译自:
svn 目录清理
转载地址:http://hwlwd.baihongyu.com/