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

查看:17
本文介绍了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 的许多方面一样,tortoise 让它变得非常简单.事实上,我相信 tortoise 实际上是通过系统地使用现有的 svn 功能来添加功能的.我意识到这个答案仅适用于 windows,但也许有些人像我一样仍然使用 windows.在检查修改"弹出窗口中,只需右键单击您的文件并选择移至更改列表"->提交时忽略".现在,当您使用 tortoise 签入时,它会将您的更改分割到各种更改列表中,因此至少您可以直观地分辨出您想要提交的内容以及您不想提交的内容.

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天全站免登陆