Thursday, September 30, 2010

Mostly used svn commands

Adding Files to SVN :
svn add theFileNeedToBeAdded

Check in added Files or modified files :
svn ci theFileModifiedOrAdded -m 'Comment about the modification done'

Check out the files from svn :
svn co -uri http://location.of.checking out files

Check the difference with svn
svn diff fileToBeCheckedWithTheServer


Check the status of files with svn
svn status

Get latest version from SVN
svn up

Adding patched files to code :
patch -p0 < theFileToBePatched

Monday, August 23, 2010

How to do find and delete in command prompt

Here is the terminal command to do find and delete

Eg: to find all files with extension ".svn" we can use

find -iname '*.svn'

to delete the founded file we can use :

find -iname '*.svn' | xargs rm -rf