Check if cwd is inside a git repository.
Future<bool> getIsGit({String? cwd}) async { return findGitRoot(cwd ?? Directory.current.path) != null; }