Subversion:仅在一个客户端上本地忽略对文件的修改 [英] Subversion: ignore modifications to a file locally on one client only

查看:69
本文介绍了Subversion:仅在一个客户端上本地忽略对文件的修改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以仅在一个客户端上本地忽略对Subversion中文件的更改,而无需将忽略传播到整个存储库?

Is it possible to ignore changes to a file in subversion locally on one client only, without propagating the ignore to the whole repository?

我要处理的特定问题是,我已经签出了一个项目并修改了包括Makefile在内的一堆文件,该文件已经是存储库的一部分.现在,我正在使用的环境与该小组的其他人不同,并且我希望对Makefile所做的更改在我的计算机上保持本地而不是提交.

The particular problem I'm dealing with is that I've checked out a project and modified a bunch of files including the Makefile, which is already part of the repository. Now the environment I'm working on is different from the rest of the group, and I want the changes to the Makefiles to remain local on my machine and not be committed.

但是,我不想设置svn:ignore,因为我相信会将忽略提交到存储库,而将make文件保存在其中很重要.

However, I don't want to set svn:ignore because that I believe would commit the ignore to the repository, while it is important to keep the make file there.

推荐答案

与svn的许多方面一样,乌龟真的很容易.实际上,我相信乌龟实际上是通过系统地使用现有的svn功能来添加功能的.我意识到这个答案只不过是Windows,但是也许有些人像我一样仍然使用Windows.在检查修改"弹出窗口中,只需右键单击您的文件,然后选择移至更改列表"->提交时忽略".现在,当您使用乌龟进行登机时,它将把您的更改划分为各种更改列表,因此至少您可以直观地看出要提交的内容和不想提交的内容.

As with many aspects of svn, tortoise makes it really easy. In fact, I believe tortoise actually adds features by using existing svn features in a systematic way. I realize this answer is windows only, then, but perhaps some people out there are like me and still use windows. In the "Check for Modifications" popup simply right click your files and select "Move to Changelist"->"ignore-on-commit". Now when you checkin using tortoise, it'll segment your changes into the various change lists, so at least you can visually tell what you want to commit and what you don't want to commit.

这篇关于Subversion:仅在一个客户端上本地忽略对文件的修改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆