Getting Started With Subversion

Written By
JK
Juliet Kemp
Feb 4, 2009

“Importing Existing Files Into a Repository

“When starting a new project, you’ll probably want to import
existing files into it. For a project currently in
/home/user/myproject:

“cd /home/user
svn import myproject file:///usr/share/svn/repos/
myproject -m “Initial import”

“(This will take a little while if you have many files.) The -m
switch attaches the log message. If you leave this out you’ll be
prompted for a message. Your current working copy of these files —
the directory you imported them from — is not a
Subversion-controlled copy. Before you do any more work on these
files, you must check them back out of Subversion, using the
command: svn checkout file:///usr/share/svn/repos/myproject

“This will create a myproject subdirectory in your current
directory and check out all the files from that project into
it.”

Complete
Story

JK

Juliet Kemp

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.