diff --git a/aider/repo.py b/aider/repo.py index 040f8156b0b..2ae813b57e1 100644 --- a/aider/repo.py +++ b/aider/repo.py @@ -56,6 +56,8 @@ def add_new_files(self, fnames): continue if not Path(fname).exists(): continue + if self.repo.ignored(Path(fname).resolve()): + continue self.io.tool_output(f"Adding {fname} to git") self.repo.git.add(fname)