1 2 3 4 5 6
#!/bin/sh if [ -n "$1" ]; then echo "Usage: create-repo <reponame>" exit 1 fi sudo -u git git init --bare "$1"