diff --git a/metagpt/utils/git_repository.py b/metagpt/utils/git_repository.py index 16f675175..d25476f25 100644 --- a/metagpt/utils/git_repository.py +++ b/metagpt/utils/git_repository.py @@ -78,7 +78,7 @@ class GitRepository: self._repository = Repo.init(path=Path(local_path)) gitignore_filename = Path(local_path) / ".gitignore" - ignores = ["__pycache__", "*.pyc"] + ignores = ["__pycache__", "*.pyc", ".vs"] with open(str(gitignore_filename), mode="w") as writer: writer.write("\n".join(ignores)) self._repository.index.add([".gitignore"])