git-shell-commands/mirror

13 lines
206 B
Text
Raw Normal View History

#!/usr/bin/env sh
2019-02-17 18:35:40 +00:00
source "$(dirname "$0")/pre-script"
2019-02-17 18:35:40 +00:00
if [[ -z "$1" ]]; then
echo "Please enter a repository URL"
exit 1
fi
/usr/bin/git clone --mirror "$1"
echo "Successfully created a mirror of $1"