How-to create and use local svn (subversion) repository on windows or Linux. Simple and fast step-by-step

By neokrates, written on February 2, 2012


Rate it
  • 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
    Loading ... Loading ...
  • Most important features for perfect mp3 player are?

    • Smth. else (81%, 13 Votes)
    • Price (13%, 2 Votes)
    • Simple, good usability (13%, 2 Votes)
    • Sound quality (13%, 2 Votes)
    • Brand (cool to own new iPod) (0%, 0 Votes)
    • Design (0%, 0 Votes)
    • Cool features (DNSe, appz, etc) (0%, 0 Votes)
    • Integrates with other things (3rd party created sound system for my mp3 player) (0%, 0 Votes)
    • Physical feats (small, light, flat, etc) (0%, 0 Votes)
    • Extras (good earphones etc) (0%, 0 Votes)

    Total Voters: 16


    Loading ... Loading ...
  • bodytext bodytext bodytext
Most popular search terms:

This is step-by-step with small explanation. There a little difference between windows and Linux way of working with local svn. You will need 5-10 min of time to start working with new repo.

Woks for:

[v] windows xp or Linux
[v] svn 1.6.* with svnadmin command installed

Should also work for:

[v] any windows
[v] other svn versions


Select or create directory where svn repo will live


Windows , DOS command line :

You can use dos command line prompt. I will put my repo in c:\repos\localsvn :

> mkdir c:\repos\localsvn
> cd c:\repos\localsvn


Linux , bash:

You can use bash command line prompt. I will put my repo in /repos/localsvn :

> mkdir -p /repos/localsvn
> cd /repos/localsvn


Create repository


Windows & Linux:

> svnadmin create repo1

If you get no error and can dir repo1 (win) or ls repo1 (Linux), repository is created.


Work with local svn repository


Windows, DOS command line :

Here are some basic things you would normally do, svn repo is local and we use “file:///” protocol:

[!!] List local svn repo

> svn ls file:///C:/repos/localsvn/repo1

[!!] Create local svn trunk directory:

> svn mkdir file:///C:/repos/localsvn/repo1/trunk -m "make trunk"

Committed revision 2.

[!!] Checkout from local svn trunk into some dir ( c:/temp/repo1trunk ):

> svn co file:///C:/repos/localsvn/repo1/trunk c:/temp/repo1trunk

Checked out revision 2.

[!!] Add and commit file to local svn

> cd c:\temp\repo1trunk
> echo "test" > test.txt
> svn add test.txt
A         test.txt

> svn commit -m "1st commit"
Adding         test.txt
Transmitting file data .
Committed revision 3.


Linux, bash :

Same as on windows, just use Linux path file:///repos/localsvn/repo1 instead of windows path file:///C:/repos/localsvn/repo1


Windows, Tortoise SVN:

If you have Tortoise SVN, you can use you local repo with the GUI.

1. Open windows explorer and go to C:/repos/localsvn/repo1
2. Now press [mouse right button] and select TortoiseSVN->repo-browser
3. Open it and see that URL dialog shows file:///repos/localsvn/repo1
4. Press [ok] and open Repository browser.
5. Now you can do all things you would normally do with any svn repository

have fun

Does that help to solve your problem?
VN:F [1.8.5_1061]
Rating: +9 (from 11 votes)
10 votes 'YES'  1 votes 'NO'

LEARN MORE (amazon bookstore)


    nope :(

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • Facebook
  • Mixx
  • Google
  • BlinkList
  • Blogosphere News
  • E-mail this story to a friend!
  • Furl
  • LinkArena
  • Live
  • MisterWong
  • Print this article!
  • StumbleUpon
  • Technorati
  • YahooMyWeb


Leave a Reply