Skip to content

Instantly share code, notes, and snippets.

@kakutani
Created March 11, 2010 02:30
Show Gist options
  • Save kakutani/328743 to your computer and use it in GitHub Desktop.
Save kakutani/328743 to your computer and use it in GitHub Desktop.
#!/bin/sh
REPO=$1
newgrp src
GIT_DIR=/var/cache/git/$REPO git --bare init --shared
cd /var/cache/git/empty
git push ../$REPO master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment