You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello my fellow SVN refugees. We are bailing from Cloudforge as they are shutting down their SVN services. Here's how I got svn2git to work on my Mac locally. (Mojave 10.14.6). This should help with (#292) and (#283)
We're lucky to have a standard svn layout. I'm afraid I can't help with non-standard.
Using bash and iterm2.
Make sure your password doesn't have any dollar signs or other special bash characters like a space or backslash. If you have a dollar sign in your password you are going to have a bad time. I don't know how to get around it, its easier to just change your password.
I used rvm to install ruby 2.4.0 rvm install "ruby-2.4.0" rvm use 2.4.0 --create gem install svn2git
start from inside a blank folder
My final command looked something like this. The --authors parameter is optional, but probably desired. See "Extra: generate an authors file" below for how to do this.
Here's the weird part. When prompted for password I had to paste my password in, hit enter, paste again then hit enter. Then the prompt comes up AGAIN and I have to repeat: paste password, hit enter, paste password hit enter. Then it started working. Not sure which part of that is actually correct but it worked.
After conversion
And for the sake of completion here are some other details.
If all goes well, and you did run the command in an EMPTY folder, you should have nothing uncommitted remaining in your folder.
You will need an empty repository on your new git host.
It is traditional and/or mandatory for some hosted git services to have a README.md so create that and commit.
Final steps after conversion:
add your new git origin from the local folder git remote add origin [email protected]:<project>.git
push all branches of your newly converted git repo git push --all origin
The authors file maps your svn usernames to a git username and email. Otherwise the old commits wont match to the usernames. This is probably a big deal.
You would do this BEFORE running svn2git
You will need a checked out copy of the svn repo to generate the authors file, even though you will need an empty folder to do the svn2git conversion (AFAIK).
Here's the weird part. When prompted for password I had to paste my password in, hit enter, paste again then hit enter. Then the prompt comes up AGAIN and I have to repeat: paste password, hit enter, paste password hit enter. Then it started working. Not sure which part of that is actually correct but it worked.
This is what I needed to get it working. I didn't have to paste, but I did have to enter my password twice at the prompt. Never would've thought to do it without this.
Getting svn2git to work on Mac 8/2020
Hello my fellow SVN refugees. We are bailing from Cloudforge as they are shutting down their SVN services. Here's how I got svn2git to work on my Mac locally. (Mojave 10.14.6). This should help with (#292) and (#283)
rvm install "ruby-2.4.0"
rvm use 2.4.0 --create
gem install svn2git
--authors
parameter is optional, but probably desired. See "Extra: generate an authors file" below for how to do this.After conversion
And for the sake of completion here are some other details.
If all goes well, and you did run the command in an EMPTY folder, you should have nothing uncommitted remaining in your folder.
You will need an empty repository on your new git host.
It is traditional and/or mandatory for some hosted git services to have a README.md so create that and commit.
Final steps after conversion:
git remote add origin [email protected]:<project>.git
git push --all origin
git push --tags origin
Extra: generate an authors file
It will output a list of usernames. It will take a while. Take the output and construct an authors.txt file in this format:
Map ALL the users that come out or it will fail. Use this file in the
--authors
parameter.The text was updated successfully, but these errors were encountered: