Thursday, January 14, 2010

Svn remove already locally deleted files

Svn remove already locally deleted files
svn st | grep ! | sed 's/! //g' | xargs svn rm

Svn add already locally added files
svn st | grep ? | sed 's/? //g' | xargs svn add

Svn cp file from old revision or already previous wrong deleted file
svn cp http://svn.exoplatform.org/svnroot/exoplatform/bla-bla/RepositoryService.java@4723 http://svn.exoplatform.org/svnroot/exoplatform/bla-bla

1 comment:

Unknown said...

Nice. Might want to escape the !s though :D