Reputation: 1646
I want to know how to add my existing project in svn
, checked some tutorials tutorial1
but none of them helped.
In the above link, they described some steps to create repository but i could do only till second step. After creating directories in new folder, i was trying to import files from existing project but getting the following error :
Unable to connect to a repository at URL 'file:///C:/svn/MyProject'
Unable to open an ra_local session to URL
Unable to open repository 'file:///C:/svn/MyProject'
Upvotes: 0
Views: 3750
Reputation: 28405
N.B. The TortoiseSVN menu is reached by clicking on the folder or file and then right click.
Both before and after committing to the repository it is a good idea to also do TortoiseSVN->Update so as to frist get anybody else's changes into your copy and then to mark your copy as up to date.
Note that it is accepted as good practice to check-out at 2) our from YourUrl/trunk as this will help when you get into working on branches & tags later.
Upvotes: 1
Reputation: 179
You can create repo by using these commonds
svnadmin create --fs-type bdb svnrepos/MyNewRepository
or
svnadmin create --fs-type fsfs svnrepos/MyNewRepository
Import Your Project
(Assuming you’ve put your project files in /projects/myexistingproject)
svn import /projects/myexistingproject file:///svnrepos/MyNewRepository
For more reference:
Upvotes: 1