Created
February 27, 2016 09:36
-
-
Save ambling/d9492b2c777bb4909ed0 to your computer and use it in GitHub Desktop.
initialize an empty repo in a simple git remote 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
#!/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