Is it possible to ignore changes to a file in subversion locally on one client only, without propagating the ignore to the whole repository?
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.
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.
Use the following command to create a list not under version control files. Then edit the file to leave just the files you want actually to ignore. Then use this one to ignore the files listed in the file: svn propset svn:ignore -F ignoring.
Set the svn:ignore property of the parent directory: svn propset svn:ignore dirname . If you have multiple things to ignore, separate by newlines in the property value.
If you want to remove one or more items from the ignore list, right click on those items and select TortoiseSVN → Remove from Ignore List You can also access a folder's svn:ignore property directly.
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.
if you use Subversion 1.5.x or higher you can use changelists:
svn cl COMMIT /path/to/project/* svn cl NOT_COMMIT /path/to/project/Makefile
Note: with second command Makefile will be removed from first changelist. You can ignore the warning.
Do not commit the second changelist.
do commits via:
svn ci --cl COMMIT -m"<LOG MESSAGE HERE>"
Important: If you commit without --cl option, ALL your changes will be committed
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With