如何在Subversion中忽略文件? [英] How do I ignore files in Subversion?
本文介绍了如何在Subversion中忽略文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何忽略Subversion中的文件?
此外,如何查找未受版本控制的文件?
.jpg 扩展名的所有文件,请使用:
svn propset svn:ignore* .jpg。
如果要忽略多个文件或文件夹,请使用:
svn propedit svn:ignore。
这将显示文本编辑器,以便输入要忽略的文件或目录列表。 / p>
要查找未受版本控制的文件:
svn status | awk'/ ^?/ {print $ 2}'
请参阅 SVN cheat sheet 了解更多提示。
PS我自己回答了这个问题,以备日后参考。
How do I ignore files in Subversion?
Also, how do I find files which are not under version control?
解决方案
To ignore all files with the .jpg
extension, use:
svn propset svn:ignore "*.jpg" .
If you want to ignore multiple files or folders, use:
svn propedit svn:ignore .
This will bring up your text editor so you can enter a list of files or directories to ignore.
To find files that are not under version control:
svn status | awk '/^?/{print $2}'
See the SVN cheat sheet for more tips.
P.S. I've answered this myself for future reference.
这篇关于如何在Subversion中忽略文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文