Skip to content

Instantly share code, notes, and snippets.

@daangemist
Created January 22, 2014 20:59
Show Gist options
  • Save daangemist/8567255 to your computer and use it in GitHub Desktop.
Save daangemist/8567255 to your computer and use it in GitHub Desktop.
Script to easily create Git repo
#!/bin/sh
mkdir $1.git
cd $1.git
git init --bare
cd ..
chown -R git:git $1.git
chmod -R g+w $1.git
echo "Add as remote: git remote add origin user@git.server:$1.git"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment