Reputation: 33517
I have a local file SVN repo of a project that needs to move to GitHub. I know from what I've read on the GitHub site and a related question here on stack-overflow that it's a simple matter to move the repo from an SVN server into the GitHub repo.
But my problem is that I have a local file repository. What is the recommended way of moving this type of repository to GitHub?
Update:
As far as I can tell there is no direct way of moving the local file repository over to git. The easiest solution would be to move the repository over to an open SVN host like Google, then use the GitHub service application to clone from SVN. However, I don't have that option because I'm not allowed to make the code public (it's not my code).
So what I'm going to try to do is to:
The caveat is that I'm behind a firewall.
Upvotes: 2
Views: 1486
Reputation: 33517
Set up a proper SVN server on a local machine
I mostly follwed instructions I found at http://wiki.centos.org/HowTos/Subversion
Create a new repository on that machine.
svnadmin create repos
Dump my file:// repository and port that to repository on the server.
Then I just ran the following command from the terminal window:
svnadmin dump PATH_TO_MY_REPOSTITORY > myrepository.dump
asdfdasf
Moved the "myrepository.dump" over to the machine with SVN serv
Imported the files into the repository:
svnadmin load PATH_TO_MY_REPOSTITORY_ON_SERVER < myrepository.dump
Clone from from the new SVN repository to a local machine.
Installed git on the server machine where
Finally push that back to GitHub.
Upvotes: 3
Reputation: 93636
There are plenty of docs on github.com that explain what your options are.
At worst, you publish your local repository somewhere publicly visible and let github slurp it up.
Upvotes: 0