the regex https://github.com/gitpython-developers/GitPython/blob/6d09bb610932d6081da7a516f8e7215414d953e5/git/config.py#L69 is missing `hasconfig:remote.*.url` from https://git-scm.com/docs/git-config#Documentation/git-config.txt-codehasconfigremoteurlcode which is covered in the git documentation.