Svn
From LinuxSwords Wiki
Contents |
the book
http://svnbook.red-bean.com/en/1.0/index.html
Create a repository
svnadmin create pathToRepo
Checkout
svn co URL
or
svn checkout URL
Commit
svn ci -m "Log Message"
or
svn commit -message "Log Message"
Update
svn up
or
svn update
svn:ignore
Create a Pattern to ignore certain files in a directory
svn propedit svn:ignore directory
then enter a regex, one per line and svn will ignore it, global ignores can be put into $HOME/.subversion/config behind the global-ignores key.
reverting file to old revision
A common task: You accidently commited a file and want to revert it to the previous revision. You can do this with reverse-merging (this is by the book!)
svn merge -r BADREVISION:GOODREVISION filename
usually: GOODREVISION:=BADREVISION-1
Scripts triggered by svn events
In the pathToRepos/hooks are template for scripts that are triggered by svn-events such as commits etc.
comparing/viewing changes
To see the differences between revision number 3 and the actual repository:
svn diff --revision 3 file.name
or between to revisions:
svn diff --revision 3:2 file.name
If file.name is ommited the whole repository is searched.
