git clone --recursive git://github.com/foo/bar.git git config --add remote.origin.fetch "+refs/heads/:refs/remotes/origin/"