Future<bool> isGitDirectory() async { final gitDirectory = Directory('.git'); final exists = await gitDirectory.exists(); return exists; }