Skip to content

Instantly share code, notes, and snippets.

@cacharle
Created July 23, 2020 17:57
Show Gist options
  • Save cacharle/c5b9aa48b3d96fd6a6e19dda62e9fc34 to your computer and use it in GitHub Desktop.
Save cacharle/c5b9aa48b3d96fd6a6e19dda62e9fc34 to your computer and use it in GitHub Desktop.
Create a repository on my server
#/bin/sh
[ $# -eq 0 ] && echo "Usage: $0 name" && exit 1
repo="/var/www/git/$1.git"
ssh git@cacharle.xyz <<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