Showing posts with label svn. Show all posts
Showing posts with label svn. Show all posts
Tuesday, July 22, 2014
Creating SVN for Existing or New Project
Step 1: Create a directory where the repository will be maintained
mkdir /opt/svnrepos
cd /opt/svnrepos
svnadmin create projectName
Step 2: Add project to SVN
#Create project directory if it does not exist
mkdir /home/user/projectName
svn import /home/user/projectName file:///opt/svnrepos/projectName -m "Initial commit of project"
Step 3: Checkout project and start using SVN
cd /home/user/workspace
svn co file:///opt/svnrepos/projectName
cd projectName
svn status
svn log
For more frequently used SVN commands, see previous post here.
Monday, June 4, 2012
SVN Most Frequently Used Commands
Legend: bold => command; <> => optional option; [] => required option
Check the status of your local copy
svn status
Sync up with the repository
svn update
Check history of commit
svn log <dir/file>
Check history of commits with list of affected files
svn log -v <dir/file>
Diff local copy with latest repository version
svn diff <file/dir>
Diff between two revisions
svn diff -r [rev1]:[rev2] <file/dir>
Diff ignoring Ctrl+M characters at the end of line
svn diff -x --ignore-eol-style <file/dir>
Commit
svn commit -m "[comment]" <file/dir>
Add new files
svn add <file/dir>
Check the status of your local copy
svn status
Sync up with the repository
svn update
Check history of commit
svn log <dir/file>
Check history of commits with list of affected files
svn log -v <dir/file>
Diff local copy with latest repository version
svn diff <file/dir>
Diff between two revisions
svn diff -r [rev1]:[rev2] <file/dir>
Diff ignoring Ctrl+M characters at the end of line
svn diff -x --ignore-eol-style <file/dir>
Commit
svn commit -m "[comment]" <file/dir>
Add new files
svn add <file/dir>
Subscribe to:
Posts (Atom)