Ok, don't do that, it's ugly. Either put the URLs in an array and loop over it:
urls=( )
for url in "${urls[@]}" ; do
git clone "$url"
done
or put them in a file, one per line, and loop reading the lines. Here, it might be useful to guard for empty lines, just like you did. We could also ignore lines starting with `#` as comments:
while read -r url ; do
if [ -z "$url" ] || [ "${url:0:1}" = "#" ]; then continue; fi
git clone "$url"
done < file.with.urls
If you want the line counter too, it's easy to add with arithmetic expansions.