Created
November 13, 2010 22:24
-
-
Save edavis10/675703 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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 = [email protected]: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/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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