Created
February 9, 2015 03:56
-
-
Save gravitano/03049197cffbd527c4c4 to your computer and use it in GitHub Desktop.
Setup a new git repository on your private server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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