svn2git | Convert SVN repos to git | Version Control System library
kandi X-RAY | svn2git Summary
kandi X-RAY | svn2git Summary
To use, simply copy into your bin directory. Perl 5.6.1 and up git git-svn.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of svn2git
svn2git Key Features
svn2git Examples and Code Snippets
Community Discussions
Trending Discussions on svn2git
QUESTION
I'm trying to do a migration of a 14.4k commit and 12 years old project from SVN to git.
As this is the tool that comes first when doing a basic browser research I tried to do it with git-svn
.
As it is really big I tried to do the migration from just a recent history like so :
ANSWER
Answered 2020-Dec-11 at 16:55Was I suppose to somehow resume the command that failed ?
Yes, try git svn fetch
. This will resume it, exactly.
Basically, git svn clone
= git svn init
followed by git svn fetch
. (Quite similarly to how git clone
itself is a git init
, followed by adding a remote named by default origin
, followed by git fetch
.)
In my experience with git-svn
, certain amount of fiddling around with .git/config
, and understanding the differences between refs and remotes, is often needed to get it working as you expect.
Usually, git-svn
is the remote which stands for the remote SVN server you're accessing through the git-svn
"adapter". Hypothetically, due to DVCS nature, you could have a Git repo with 3 remotes:
lab-server
cloud-archive
git-svn
(or, perhaps better renamed as e.g.svn-legacy
)
Seeing an origin
remote in your error messages tells me you probably got confused at some point, and said git clone
instead of git svn clone
. My advice would be to figure out the basics and obtain a clear mental model of what you're doing. Documentation and .git/config
may help with that.
QUESTION
So I've installed svn2git using Ruby on Windows. Unfortunately, since git has made the change of Master branch to Main, this has broken the script. I've found the script in
...ANSWER
Answered 2020-Nov-24 at 20:17since git has made the change of Master branch to Main, this has broken the script
I'm not sure what you mean by "broken"; perhaps you needed to rename master
-->main
here? (Or even better, you could make it somehow configurable, not hardcoded?)
How do I recompile / remake
This is ruby. It's an interpreted language; you don't need to compile anything.
It would be "bad practice" to edit the gem directly on your machine, but this should still work. If you run svn2git
on the command line right now, then - assuming that's the correct installation (e.g. you don't also have a ruby 2.6 version installed that's getting picked up?!), it should run your modified code instead.
But for a "better" long-term solution, it would be advisable to fork the project, make your change, and install your own version of the project.
You could also open a pull request with your change, in case the original author is still active and willing to release an update.
QUESTION
I'm trying to migrate an 11GB SVN repo with over than 24k revisions inside to a single GIT repository.
I did a single file dump of the SVN using svnrdump
command and load it into my local SVN server, placed on my MacBook machine.
I downloaded the svn2git from the https://github.com/svn-all-fast-export/svn2git repository.
Due to differences in the way how SVN and GIT handle tags, I used a merged-branches-tags.rules from the svn2git sample directory, which look like this (I've removed comments): create repository myproject end repository
...ANSWER
Answered 2020-Jul-14 at 21:48After a further investigation, it turns out that the mentioned "7.0M0p0000" tag was created in the rev 12601 as a copy of all the tags from rev 12600.
I've found it in the dump file, created using this command:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install svn2git
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page