This guide will demonstrate how to mirror an SVN into a Git repo. You're the target audience if you're an SVN user, just getting started with Git and need to coax your project team over to Git.
The branching scenario has been simplified for clarity.
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| /* | |
| Reddit DailyProgrammer Challenge #180 -- Tamagotchi Emulator | |
| By Aerospark12 (aka Luke) | |
| I may have gone a little bit overboard with this one, but I've got fond memories of tamagotchi from when | |
| I was but a wee laddie, I've always wanted to make something like this, and I really enjoy graphics and animation | |
| The design of this is partially inspirte by how I understand "low level" ICs to work, as an homage to the real tamagotchi | 
| import Map; | |
| class OrderedMapIterator<K,V> { | |
| var map : OrderedMap<K,V>; | |
| var index : Int = 0; | |
| public function new(omap:OrderedMap<K,V>) | |
| map = omap; | |
| public function hasNext() : Bool | 
| // adapted from the original acube demo by tkcne. | |
| // enjoy | |
| include "stdlib.h"; | |
| include "string.h"; | |
| include "malloc.h"; | |
| include "math.h"; | |
| include "gccore.h"; | |
| include "stdio.h"; |