[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: please migrate to git

From: Norbert Preining
Subject: Re: please migrate to git
Date: Sun, 25 Nov 2018 10:02:02 +0900
User-agent: Mutt/1.10.1 (2018-07-13)

Hi Gavin,

some comments:

> git svn is going to take a long time to run as it has to connect to the 


> https://git-scm.com/docs/git-svn recommends against the --no-metadata 
> option.

no-metadata is ok if you want to convert definitely to git and
afterwards don't use svn anymore.

I use the metadata in the texlive/texlive-source git mirrors because I
can commit back from git to svn.

> Although https://savannah.gnu.org/maintenance/UsingGit/ says that 
> git-svnimport can be used for conversions, I don't have a git-svnimport 

It is a separate package and I have converted about 30 Debian svn
packages to git back some years ago with it. It was included in git core
till 1.5.4 when it was removed in favor of git svn :-(

If you have access to the svn server, you could get a copy with

What I did with most definitive svn to git conversions is:

git svn clone SVNREPO --no-metadata -A AUTHORSFILE --stdlayout  ./temp.checkout
# if there are svn ignore stuff:
# cd temp.checkout
# git svn show-ignore > .gitignore
# git add .gitignore
# git commit -m 'Convert svn:ignore properties to .gitignore.'
# cd ..
cd temp.checkout
git remote add bare BAREREPO            # BAREREPO could be gihub/savanaa/..
git config remote.bare.push 'refs/remotes/*:refs/heads/*'
git push bare
cd ..
rm -rf temp.checkout
git clone BAREREPO


PREINING Norbert                               http://www.preining.info
Accelia Inc.     +    JAIST     +    TeX Live     +    Debian Developer
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13

reply via email to

[Prev in Thread] Current Thread [Next in Thread]