While working
on SVN, a question arrived in my mind that is there any way to setup SVN in
local network. Yes [Where there is will there is way] it’s possible. If you
have any project and your team is working on local network, then you can setup
svn on local network, it becomes easier for a team to work. It basically can be
very much useful for the collegians. Collegians must use this approach in all
projects. We can setup SVN on local machine connected in a network and that
will act as a SVN server for other team mates.
Prerequisites
– Tortoise SVN (Subversion client) and
Ankh SVN (Subversion plugins for Visual Studio)
Note: we
already have created a visual studio solution.
Let’s have a
step by step look on how to setup SVN in local.
1)
Create a folder where repository will
reside. I have created a folder name Repository Demo where my solution’s repository
will be saved when I check In.
2)
Add project solution in Repository
Browse
the repository.
Our next step
is to add our solution to the SVN Repository we just created. We will add the
solution/project files under the trunk folder.
Add the
solution to repository directory.
You will see
that your solution is now added in repository once you add solution folder in
repository.
Provide the
network access rights for repository directory to be accessible by network
users. I am giving the Everyone access rights so now anyone having access to my
machine in network will be able to get the solution via this Repository.
3) Now we can
provide repository access to anyone in your network. Example: file://Nikki-PC/Repository
Demo/trunk
OR
Happy sub-versioning.
J