Export creates a clean working copy of a project:
It also creates a folder named `project` in the current directory.
svn export http://repository/project/trunk project
common commands
Export creates a clean working copy of a project:
It also creates a folder named `project` in the current directory.
svn export http://repository/project/trunk project
Rename a file in working copy or repository:
svn move foo.c bar.c
svn move http://repository/project/trunk/foo.c \ http://repository/project/trunk/bar.c -m "Place comment here."
Display status of working copy:
svn status
Synch working copy with repository:
svn update
svn up
Delete a file in working copy:
svn delete foo.c
Removes file in the working copy.
Removes file in the repository after a commit.
Adding a file or directory:
svn add foo.c
svn add directory
Create a new branch:
svn copy http://repository/project/trunk \ http://repository/project/branch/newbranch \ -m "Place comments here."
Reverts changes in working copy:
svn revert foo.c
svn revert --recursive .
Displays differences in working copy:
svn diff
Display information of working copy:
svn info
Switch a working copy to different tag or branch:
svn sw http://repository/project/tags/1.0
Recommended repository layout:
svn list http://repository/project /trunk /branches /tags
The import command:
1. Setup directory in this format.
repository/project/trunk
/tags
/branches
2. Then perform the import command.
svn import project http://repository -m "Place comments here."
Tags are snapshots of a project in time. It’s ideal for marking releases.
To create a new tag:
svn copy http://repository/project/trunk \ http://repository/project/tags/1.0 \ -m "Place comments here."
The commit command:
svn commit -m "Comments are placed here."
The checkout command:
svn co http://repository/project/trunk .
Copyright © 2003-2012. All Rights Reserved.