I'm developing with many people.
I check out remote repository, get 3 file. After edit, run:
svn status
It shows:
M file_1
M file_2
M file_3
Now, I want to commit only two file: file_1, file_2, but not file_3.
How to do it?
I dont' want to use
svn revert file_3
before commit.
Explain: I edit file_1, file_2 for shared project, file_3 for running on only my local machine.
If you right click on a single unversioned file, and select the command TortoiseSVN → Add to Ignore List from the context menu, a submenu appears allowing you to select just that file, or all files with the same extension.
Description. Used for dividing files in a working copy into a changelist (logical named grouping) in order to allow users to easily work on multiple file collections within a single working copy.
Expanding upon zoul's answer.. to develop your list of files use:
svn stat | grep -v ignore.file | perl -ne 'chop; s/^.\s+//; print "$_ "'
Or if you have file names with spaces use:
svn stat | grep -v ignore.file | perl -ne 'chop; s/^.\s+//; print "\"$_\" "'
How about:
$ svn commit file_1 file_2
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