-
-
Save alethea/6679748 to your computer and use it in GitHub Desktop.
Command to create a new repo from git-shell
This file contains hidden or 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 | |
repo="${1##*/}.git" | |
if [ ! -d "$repo" ]; then | |
git init --bare "$repo" | |
else | |
echo "Repository ${repo} already exists" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment