Skip to content

Instantly share code, notes, and snippets.

@dscho
Created February 17, 2012 18:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dscho/1854723 to your computer and use it in GitHub Desktop.
Save dscho/1854723 to your computer and use it in GitHub Desktop.
Initial .git/config for accelerated git-svn clones of ImageJ2's source code repository
# 1) git init
# 2) overwrite .git/config with this file
# 3) git fetch
# This step takes some time:
# 4) git svn fetch
# 5) git checkout -b master -t trunk
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = git://code.imagej.net/imagej.git
pushURL = git@code.imagej.net:imagej.git
fetch = +refs/heads/*:refs/remotes/origin/*
fetch = +refs/heads/svn/*:refs/remotes/*
[svn-remote "svn"]
url = http://code.imagej.net/svn/imagej
fetch = trunk:refs/remotes/trunk
branches = branches/*:refs/remotes/*
tags = tags/*:refs/remotes/tags/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment