git-shell-commands/mirror
2019-02-17 12:35:40 -06:00

10 lines
171 B
Bash
Executable file

#!/usr/bin/env bash
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"