Microsoft/vscode

Git - Adding a folder to `.gitignore` should not add every single file

开放

#127,028 创建于 2021年6月23日

 (7 条评论) (3 个反应) (1 位负责人)TypeScript (39,847 个派生)batch import
feature-requestgithelp wanted

仓库指标

星标
 (184,936 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

  • VS Code Version: v1.57.1
  • OS Version: Win 20H1

Steps to Reproduce:

  1. Create an empty repository
  2. Do npm init && npm install whatever
  3. Switch to the SVM view
  4. Oops, you have one bajillion changed files in your working copy! Right-click the node_modules folder in the SCM view and choose "Add to .gitignore".

Expected behavior:

  • node_modules/ is added to the .gitignore.

Actual behavior:

  • Every single file in the node_modules subtree of the repository is added separately to the .gitignore ...

贡献者指南