Microsoft/vscode

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

オープン

#127,028 opened on 2021/06/23

 (7 件のコメント) (3 件のリアクション) (1 人の担当者)TypeScript (39,847 件のフォーク)batch import
feature-requestgithelp wanted

Repository metrics

Stars
 (184,936 個のスター)
PR merge metrics
 (PR metrics pending)

説明

  • 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 ...

コントリビューターガイド