sysCore ApS
Tel: +45 32 21 57 70
Fax: +45 69 66 33 66
Glostrup, Denmark

Quick Product & Service Guide
Competences | Services | AppHost | Clip-card support | B2B SHOP | Online Presence Pack | RFID | sysAlarms
Google Apps for Business | WADA-NET | CLUB-NET

HCORE Skræddersyet webløsninger
Vi er en del af H|CORE
Autoriseret UNI-TEL forhandler

Autoriseret forhandler
Autoriseret NAVICAT forhandler

Autoriseret forhandler
sysCore Aps supports Foundation INNOVARE
meetBSD logo
sysCore Aps supports meetBSD Conference

Import and checkout – in-place SVN

With SVN you cannot import a directory and then automatically have it as a working copy. You have to checkout – but there is a nice and clean trick to make this happen. If you wanted to add ~/mydir to SVN and then have ~/mydir as a working copy without the pain of removing/checking out files, do the following:

cd ~/mydir
svn mkdir --parents
svn co .
svn add ./*
svn ci -m "Initial import"

Basically you are creating a directory in your SVN repository (/stuff/mydir/trunk – why this way – I recommend reading the manual) and then checking out that directory. Technically speaking it only creates a “.svn/” directory in “~/mydir” effectively turning your original data into a working copy. Then all you have to do is to add and commit all other files. In-place SVN – ready.

Posted in howto, linux | Tagged , | Comments Off on Import and checkout – in-place SVN