Add -a and -A option to control output amount.
Fix for .git suffix in URL.