def METHOD_NAME(cls, path: str) -> str:
    """Sanitize the git path for folder/file assignment.
    Keyword Args:
        path: The path string to be sanitized
    """
    dir_name = path
    split = path.split("//")
    domain = split[len(split) - 1]
    if domain.endswith(".git"):
        dir_name = domain[:-4]
    return cls.sanitize_directory_path(dir_name)