SVN Quickstart Guide: Difference between revisions
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
svn import /tmp/project <nowiki>https://subersion.ittc.ku.edu/svn/<repo name></nowiki> | svn import /tmp/project <nowiki>https://subersion.ittc.ku.edu/svn/<repo name></nowiki> | ||
== Adding, Moving, and Removing Files == | == Adding, Moving, and Removing Files or Directories == | ||
To add a file, run the following command: | To add a file or directory, run the following command: | ||
svn add filename ENTER | svn add filename ENTER | ||
To move a file, run the following command: | To move a file or directory, run the following command: | ||
svn move filename newfilename ENTER | svn move filename newfilename ENTER | ||
To remove a file, run the following command: | To remove a file or directory, run the following command: | ||
svn remove filename ENTER | svn remove filename ENTER |
Latest revision as of 14:46, 22 September 2006
Retrieving Software from the SVN Server
To retrieve, or check out, the entire repository use the following command:
svn co https://subversion.ittc.ku.edu/svn/<repo name>
Importing Existing Data
Once you have a tree of data ready to go, import the data into the repository with the svn import command:
svn import /tmp/project https://subersion.ittc.ku.edu/svn/<repo name>
Adding, Moving, and Removing Files or Directories
To add a file or directory, run the following command:
svn add filename ENTER
To move a file or directory, run the following command:
svn move filename newfilename ENTER
To remove a file or directory, run the following command:
svn remove filename ENTER
Setting up Environment
Before you checkin your changes, you need to set the SVN_EDITOR environment variable:
export SVN_EDITOR=vi
Checking Your Changes In
To commit your changes to the server for everyone to see, run the following command:
svn commit ENTER
Updating the Software
To update your local copy of the source code, run the following command:
svn update ENTER
Creating Patch Files
To prepare a patch file, run the following command:
svn diff >filename.patch ENTER
Additional Resources
You can find extensive documentation in the [svnbook].