Skip to content

Global gitignore file not processed #49239

@rkimballn1

Description

@rkimballn1

Issue Type: Bug

This is a problem developing in WSL but probably exists elsewhere.
Using WSL Ubuntu:

  1. create a global gitignore file following these instructions https://help.github.com/articles/ignoring-files/
  2. Add a file to your repo, anything will do. Call it test.abc for example. If you do a git status command then this file you just added should show up as untracked.
  3. Add this new untracked file to your .gitignore_global file. Now git status should not show the file. This verifies that you have successfully configured your .gitignore_global file.
  4. Open your project in VSC and go to the source control panel. The file which is excluded in your .gitignore_global file will show up as untracked in this panel.

Because the .gitignore_global file is ignored by VSC I have over 3,000 untracked files in my source control panel.

VS Code version: Code 1.23.0 (7c7da59, 2018-05-03T16:44:55.614Z)
OS version: Windows_NT x64 10.0.17134

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8 x 4008)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: disabled_software
video_decode: enabled
video_encode: enabled
vpx_decode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 31.93GB (16.90GB free)
Process Argv C:\Program Files\Microsoft VS Code\Code.exe
Screen Reader no
VM 0%
Extensions (11)
Extension Author (truncated) Version
code-gnu-global aus 0.2.2
multiline-find-and-replace axl 0.0.1
Doxygen bbe 1.0.0
githistory don 0.4.0
vscode-clang mit 0.2.2
python ms- 2018.4.0
cpptools ms- 0.16.1
gitconfig sid 1.0.1
cmake twx 0.0.17
cmake-tools vec 0.11.1
clang-format xav 1.6.1

Metadata

Metadata

Assignees

Labels

*questionIssue represents a question, should be posted to StackOverflow (VS Code)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions