Arc
Arc

Reputation: 1700

Ignore some files from SVN commit

Have to remove the logs and schema.rb from the svn as that is machine dependent.My schema is not migrating after the update as the schema revision on different machine is of different order.

Upvotes: 2

Views: 7070

Answers (2)

dmondark
dmondark

Reputation: 1687

This is done with adding svn:ignore property. CD to where your files are located and try the following command:

svn propset svn:ignore schema.rb .

Note the dot at the end of the command.

Check that the files are ignored:

svn status --no-ignore

Then commit.

Upvotes: 2

Marcin Gil
Marcin Gil

Reputation: 69505

I assume you need to ignore file while adding/commiting. To heal the situation first add unneeded files/patterns to svn:ignore keyword.

Then make a backup of these files for yourself and remove them from SVN repository and commit removal. Next, copy your backups back to working copy. These files will not be visible by SVN any longer as you have added them for "ignoring".

Upvotes: 2

Related Questions