Skip to content

Instantly share code, notes, and snippets.

@ambling
Created February 27, 2016 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ambling/d9492b2c777bb4909ed0 to your computer and use it in GitHub Desktop.
Save ambling/d9492b2c777bb4909ed0 to your computer and use it in GitHub Desktop.
initialize an empty repo in a simple git remote server
#!/bin/bash
sudo bash <<EOF
cd /home/git
git init --bare $1.git
chown -R git:git /home/git/$1.git
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment