Check whether the input is a git repository.
x (str or os.PathLike) – Directory path.
True if x is a directory tracked by git.
True
x
bool
Examples
>>> is_git_repo("/tmp") False