Skip to content

Instantly share code, notes, and snippets.

@miaout17
Created January 6, 2011 15:57
Show Gist options
  • Save miaout17/768068 to your computer and use it in GitHub Desktop.
Save miaout17/768068 to your computer and use it in GitHub Desktop.
git clone -u /home2/username/bin/git-upload-pack [email protected]:~/repo/$1
cd $1
repo-config $1
git remote add origin [email protected]:~/repo/$1
git config remote.origin.uploadpack '/home2/username/bin/git-upload-pack'
git config remote.origin.receivepack '/home2/username/bin/git-receive-pack'
ssh [email protected] "mkdir ~/repo/$1; ~/bin/git init --bare ~/repo/$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment