Reputation: 12415
I have different files that must be committed to a repository. One file has some changes, but I don't want to commit also this one, because at the moment it has some dangerous changes. How can I tell svn files that I don't want to commit?
Upvotes: 0
Views: 1156
Reputation: 42875
There are also excellent gui tools under Linux (I use kdesvn), but you can also do this on cli by temporarily adding the file in question to the svn-ignore list.
You can also experiment with the find
utility. It is used to select files by attributes, so for example by name. And it offers a nogation switch: find . ! -name "file-to-gnore"
. Maybe you can pipe the result to your cli svn client? Yes, you can: find working_copy_folder ! -name "file-to-gnore" | svn ci
Upvotes: 0
Reputation: 2069
Try this
svn changelist ignore-on-commit file-you-want-to-add
I hope this will help you SVN: Is there a way to mark a file as "do not commit"?
Upvotes: 2
Reputation: 154
If you're using a client like TortoiseSVN you can check which files you would like to commit without committing the entire package.
Here is a link:
Upvotes: 1