diff --git a/aider/main.py b/aider/main.py index c9a9b8f64..00e303579 100644 --- a/aider/main.py +++ b/aider/main.py @@ -187,8 +187,10 @@ def check_gitignore(git_root, io, ask=True): if not patterns_to_add: return - if ask and not io.confirm_ask(f"Add {', '.join(patterns_to_add)} to .gitignore (recommended)?"): - return + if ask: + io.tool_output("You can skip this check with --no-gitignore") + if not io.confirm_ask(f"Add {', '.join(patterns_to_add)} to .gitignore (recommended)?"): + return if content and not content.endswith("\n"): content += "\n"