#####################
# svn-cheat-sheet
#####################


list all repos
==============
>> http://<server>/svn/


create repo
===========
>> go into /svn
>> svnadmin create <repo_name>
>> change permissions of the repository to the right user and group


checkout repo
=============
>> go into /omd/sites/mysite
>> svn checkout --force <URL> .
>> eg: svn checkout --force http://<server>/svn/checkmk_mkp_xfusion/ .


enable keyword substition
=========================
>> svn propset svn:keywords "Date Revision Author" <files/path>


add files to repo
=================
>> svn add <file/path>
>> if you want to include all subfolders use: svn add --parents <file/path>


remove files from repo
======================
>> svn delete <file/path>


commit changes
==============
>> svn commit -m "<message>"


show added files
================
>> svn status |grep A


keywords
========
#################################
# $Rev$
# $Date$
# $Author$
#################################

computer2know :: thank you for your visit :: have a nice day :: © 2024