Skip to content

Instantly share code, notes, and snippets.

@edavis10
Created November 13, 2010 22:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save edavis10/675703 to your computer and use it in GitHub Desktop.
Save edavis10/675703 to your computer and use it in GitHub Desktop.
#
# Core Redmine sync
#
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[instaweb]
local = true
httpd = webrick
port = 4321
browser = google-chrome
[svn-remote "svn"]
url = svn+ssh://rubyforge.org/var/svn/redmine
fetch = trunk:refs/remotes/trunk
branches = branches/*:refs/remotes/*
tags = tags/*:refs/remotes/tags/*
[svn]
authorsfile = /home/edavis/dev/git-authors.txt
[remote "github"]
url = git@github.com:edavis10/redmine.git
#
# This is the magic. It will push all of these branches with every "git push"
# Notice the mapping from remote (svn) to heads
push = refs/remotes/trunk:refs/heads/master
push = refs/remotes/1.0-stable:refs/heads/1.0-stable
push = refs/remotes/0.9-stable:refs/heads/0.9-stable
push = refs/remotes/0.8-stable:refs/heads/0.8-stable
push = refs/remotes/0.7-stable:refs/heads/0.7-stable
push = refs/remotes/0.6-stable:refs/heads/0.6-stable
push = refs/remotes/work:refs/heads/work
push = refs/remotes/nbc:refs/heads/nbc
push = refs/remotes/swistak:refs/heads/swistak
push = integration-to-svn-trunk:integration-to-svn-trunk
push = integration-to-svn-stable-1.0:integration-to-svn-stable-1.0
push = refs/remotes/tags/*:refs/tags/*
#!/bin/bash
DIR=/home/edavis/dev/redmine/redmine-core
. ~/.keychain/$HOSTNAME-sh # For my SSH key password-less logins
cd $DIR
git svn fetch --all
git push github
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment