return the link url string instead of displaying it
check if current directory is a git repo first of all