Category Archives: SVN

svn ignore

1 – go to folder where your files are placed

2 – Edit the properties for the current directory

svn propedit svn:ignore .

3 – Add the files or patterns ex:

Ignores all .conf files on the current directory

*.conf

4 – Save your file (^X if you’re using nano)

5 – Confirm what you did (you can skip this)

You can see your property

svn propget svn:ignore .

You should see an ‘I’ next to the ignored files

svn status --no-ignore

6 – Commit your changes

svn commit -m 'svn ignore'

Now you can ask:
- Ok, but if I want to undo these changes or add some new files or patterns?

I say: Easy!

- If you and to add new files or patterns: Repeat all above steps (1 – 6)

If you want do undo these changes, you need to go to your directory and type:

svn propdel svn:ignore

Add all unversioned files to svn

Run this command on terminal

svn status | grep '?' | sed 's/^.* /svn add /' | bash

and after you can run this

svn commit -m 'Comments'
Page 1 of 11