$ mkdir ~/bin
$ PATH=~/bin:$PATH
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
CM7
$repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
CM9
$repo init -u git://github.com/CyanogenMod/android.git -b ics
CM10
$repo init -u git://github.com/CyanogenMod/android.git -b jellybean
4.2.2
$repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1