The general approach is
if command; then
# Every went OK
else
# Something failed
fi
and it works for `git`:
if git clone ...; then
# The repo was cloned correctly
else
# Something failed
fi
The first branch is only taken if the `git clone` command exits with a status of 0, indicating success; any other exit status is considered failure, and causes the second branch to be taken.