Coding Programmer svn
SVN Command to manage tracking of personal projects.
March 11, 2019
0

I was recently working on some of projects of my start-up. I wanted to make sure that I can see the revision logs of my project source code so that I can find why I have changed the code & in case accidental delete of a running good code I can restore by reviewing the versions. So, I decided to use SVN in my mac. This is what I followed:

1. Creating a  SVN repository folder where all projects will be tracked. So  I created in my Xampp folder.
# cd /Applications/MAMP/htdocs/
# mkdir svnrepo

2. One of my project was bdbooking.com, so I created a project for bdbooking.com
# cd /Applications/MAMP/htdocs/svnrepo/

# svnadmin create bdbooking

3. Now as I am done setting with the repository, I will create a working project where actually I will write all the code for the project bdbooking. This is a PHP project, I will create in my Xampp folder.

# cd /Applications/MAMP/htdocs/
# mkdir bdbooking.com
# svn import bdbooking.com file:///Applications/MAMP/htdocs/svnrepo/bdbooking/ -m “Initial Import”
# cd bdbooking.com
# svn checkout file:///Applications/MAMP/htdocs/svnrepo/bdbooking/ .
# mkdir trunk
# mkdir tags
# mkdir branches
# mkdir assets

# svn add trunk
# svn add tags
# svn add branches
# svn add assets

4. Now I need to copy all the source code in the trunk folder.

# svn commit -m “Initial version”

So, My first empty project SVN has been configured properly.

5. Now, If I have the source code of the project, I will put them all in trunk folder

# svn add trunk/*
# svn commit -m “Running Version”

Of-course I will have to run the project by as example: http://localhost/bdbooking.com/trunk/

6, Now if I need to created branches or tag version wise, I will have to run the below code:
# cd /Applications/MAMP/htdocs/bdbooking.com/
# svn cp trunk tags/1.0.1

About author

ZERIN

CEO & Founder (BdBooking.com - Online Hotel Booking System), CEO & Founder (TaskGum.com - Task Managment Software), CEO & Founder (InnKeyPro.com - Hotel ERP), Software Engineer & Solution Architect

How do i install older version of CI4 using composer

Sometimes when you run git update & composer u...

Read more

hitpath API: Read Affiliates Record

<?php $offset = 0; $limit = 10; $url = "http://...

Read more

hitpath API: Read Campaigns Record

<?php $offset = 0; $limit = 10; $url = "http://...

Read more

There are 0 comments

Leave a Reply

Your email address will not be published. Required fields are marked *