phillipsdata / git-migrate Goto Github PK
View Code? Open in Web Editor NEWA utility for migrating from SVN to Git
A utility for migrating from SVN to Git
If a relative path is provided for any path option, resolve the path with respect to the --dir
option or dir config file option.
For example:
vendor/bin/git-migrate --dir /full/path/to/repos --authors ../authors.txt
The --authors
path would results to /full/path/to/authors.txt
because /full/path/to/repos/../authors.txt
resolves to /full/path/to/authors.txt
.
This applies for the following options:
--authors
--items
--javalib
Adding support for pushing to the remote origin would require defining the remote origin.
The current --items
layout is:
return [
'my-external-dir' => [
'another-dir' => [
'repo1',
'repo2'
]
]
]
So this would necessitate a change to this structure. To maintain backwards compatibility, I suggest adding a --config
flag for the new structure. --items
could continue to be used, and would simply overwrite the repositories
section of the --config
file if provided. In fact, all parameters specified via a flag would overwrite that defined in the --config
file.
The new config would have the following structure:
{
"repositories": [
{
"path": "my-external-dir/another-dir/repo1",
"origin": "https://domain.com/repo1.git"
},
{
"path": "my-external-dir/another-dir/repo2"
}
]
}
With the origin known, if provided with the flag --push
, then add the origin, and push:
git remote remove origin
git remote add origin https://domain.com/repo1.git
git push -u origin --all
git push -u origin --tags
In addition to repositories we'd add the following to mirror their parameters:
So the --config
stucture would be:
{
"repositories": [
...
],
"authors": "/path/to/authors.txt",
"dir": "/path/to/",
"javalib": "/path/to/svn-migration-scripts.jar"
"url": "svn://svn.yourdomain.com/",
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.