You only can add some initialization config steps like:
git init repo
cd repo
git remote add origin git@repo
git config user.name yourName
git config user.email yourEmail
git config branch.master.remote origin
git config branch.master.merge refs/heads/master
Then everything would be ready for a git fetch.
This is similar to this Gist script "remgit.sh
"