tags:

views:

232

answers:

3

Hi,

How to check in only selected files changed in to the repository?

+4  A: 

If you are using TortoiseSVN, a dialog box appears when you do a commit that allows you to deselect any files you don't want to commit.

If you are using a command-line tool, check the documentation for the commit function of that tool, it should allow you to specify which files to include.

sangretu
+7  A: 

Just tell Subversion which files you want to check in.

svn commit FILE1 FILE2 FILE3 ...

You may also find the changelist feature, introduced with 1.5 useful. See this section of the book.

bendin
+4  A: 

Just give the file names to the commit command:

svn commit -m "Fixed a bad bug" file1 file2

If you are using subversion 1.5 or newer, you could instead create a changelist.

svn changelist mychanges file1 file2

will create a changelist called mychanges and assign the files file1 and file2 to it.

Then you can commit the changelist, or use the changelist on many other commands as well:

svn commit -m "Fixed a bad bug" --changelist mychanges
CoverosGene