svn:ignore - 它是如何工作的?
我很难理解 svn:ignore 属性。如果有人能在这方面帮助我,那就太好了。
我从 svn 存储库中检查了一个 grails Web 应用程序,该应用程序具有应用于 *.log 文件和 /target 文件夹的 svn:ignore 属性。显然,当我检查 *.log 文件时,/target 文件夹丢失了。在我的本地工作副本上处理此 grails 应用程序后,将创建 /target 目录和 *.log 文件。现在,当我将更改提交到 svn 存储库时,/target 文件和 *.log 文件也会提交吗?或者它们会因为 grails 应用程序的 svn 副本上已经存在 svn:ignore 属性而被自动忽略吗?
希望我已经说清楚了。
感谢您提供的任何帮助。
I have difficult in understanding the svn:ignore property. It would be nice if someone could help me on this.
I checked out a grails web app from a svn repository that has svn:ignore property applied for *.log files and /target folder. Obviously, when I checked out the *.log files and /target folder was missing. After working on this grails app on my local working copy, the /target directory and *.log files gets created. Now, when I commit the changes into the svn repo, will the /target files and *.log files get committed too? or will they be automatically ignored because of the svn:ignore property already existing on the svn copy of the grails app?
Hope I have made myself clear.
Thanks for any help offered.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
参考:
http://svnbook.red-bean。 com/en/1.1/ch07s02.html
Reference:
http://svnbook.red-bean.com/en/1.1/ch07s02.html
svn:ignore 属性包含某些 Subversion 操作将忽略的文件模式或目录名称列表。如果您将更改提交到 svn 存储库,则 /target 文件和 *.log 文件将不会被提交,并且它们会被自动忽略,因为 svn:ignore 属性已存在于 grails 应用程序的 svn 副本上。
The svn:ignore property contains a list of file patterns or directory names which certain Subversion operations will ignore. If you commit the changes into the svn repo, the /target files and *.log files will not be committed and they are automatically ignored because of the svn:ignore property that already exists on the svn copy of the grails app.