code: func GetGitRepoName(url string) (string, error) {
  	if !(strings.Contains(url, "git@") || strings.Contains(url, "gitlab@") || strings.Contains(url, "https://")) ||
  		!strings.HasSuffix(url, ".git") {
  		return "", fmt.Errorf("Bad git url format %q", url)
  	}
  
  	return strings.TrimSuffix(Tail(url), ".git"), nil
  }
docs: // GetGitRepoName return git repo name