def is_git_repository(url):
    """
    It returns if the url is a git repository.
    :param url: the url to check if it is a git repo
    :return: True/False
    """
    return url.startswith(('git://', 'git+http://', 'git+https:/')
        ) or url.endswith('.git')
