Pages

Showing posts with label version. Show all posts
Showing posts with label version. 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.

Saturday, July 16, 2011

Basic Mercurial version control

1. Set username in ~/.hgrc:
[ui]
username=name<email>

2. Setup new project
cd YourProj
hg init
hg status
hg add
hg commit

3. Other frequently used commands:
hg log
hg help


http://mercurial.selenic.com/wiki/QuickStart