Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs

Partner Sites
JustLinux.com
Linux Planet
PHPBuilder
Technology Jobs

Top White Papers

More on LinuxToday


Getting Started With Subversion

Feb 04, 2009, 14:33 (0 Talkback[s])
(Other stories by Juliet Kemp)

"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

Related Stories: