在提交到 SVN 之前标记文件
每次提交之前,我的项目中都会有很多更改的文件。但我还有很多不应该提交给 SVN 的文件(它需要我进行本地工作)。我需要遍历所有更改的文件并记住应该提交哪些文件。
是否可以标记(也许使用某些 Eclipse 插件)文件以供进一步选择和提交。
Each time before committing I have a lot of changed files in my project. But also I have a lot of files that shouldn't be committed to SVN (it need me for local work). I need traverse all changed files and REMEMBER which of them should be committed.
Is that possible to mark(maybe with some Eclipse plugin) files for further selection and committing.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用变更列表。请参阅有关在 Eclipse 中使用变更列表的 Stackoverflow 问题。
在 Subversion 1.5 及更高版本中,您可以将文件放入更改列表中。然后,您可以仅提交、更新和恢复该特定更改列表中的那些文件。将“不要提交文件”放入一个变更列表,或者“我只想将这些文件签入另一个变更列表。
如果这些文件已签入,则
svn:ignore
将不起作用Subversion 仅用于添加新 文件。You can use changelists. See this Stackoverflow question on using changelists in Eclipse.
In Subversion 1.5 and higher, you can put your files into changelists. You can then commit, update, and revert only those files in that particular changelist. Put your "don't commit files" into one changelist, or the "I only want to check in these files into another changelist.
The
svn:ignore
won't work if these files are already checked into Subversion. It's only for adding new files.