Microsoft/vscode

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

Open

#127,028 建立於 2021年6月23日

在 GitHub 查看
 (7 留言) (3 反應) (1 負責人)TypeScript (10,221 fork)batch import
feature-requestgithelp wanted

倉庫指標

Star
 (74,848 star)
PR 合併指標
 (平均合併 11小時 43分鐘) (30 天內合併 1,000 個 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 ...

貢獻者指南