Created
January 22, 2014 20:59
-
-
Save daangemist/8567255 to your computer and use it in GitHub Desktop.
Script to easily create Git repo
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/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