Skip to content

Instantly share code, notes, and snippets.

@gravitano
Created February 9, 2015 03:56
Show Gist options
  • Save gravitano/03049197cffbd527c4c4 to your computer and use it in GitHub Desktop.
Save gravitano/03049197cffbd527c4c4 to your computer and use it in GitHub Desktop.
Setup a new git repository on your private server
REPONAME=$1
REPODIR=$2
### Setup A New Git Repository
mkdir $REPONAME
chown -R git:developers $REPODIR
chmod g+rws $REPODIR
cd $REPODIR
git init --bare
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment