Created
July 23, 2020 17:57
-
-
Save cacharle/c5b9aa48b3d96fd6a6e19dda62e9fc34 to your computer and use it in GitHub Desktop.
Create a repository on my 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/sh | |
[ $# -eq 0 ] && echo "Usage: $0 name" && exit 1 | |
repo="/var/www/git/$1.git" | |
ssh [email protected] <<EOF | |
mkdir $repo && | |
cd $repo && | |
git init --bare | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment