Microsoft/vscode

Can't unstage changes of edited file in new git repository

Open

#264,338 opened on Sep 1, 2025

View on GitHub
 (0 comments) (1 reaction) (1 assignee)TypeScript (10,221 forks)batch import
buggithelp wanted

Repository metrics

Stars
 (74,848 stars)
PR merge metrics
 (Avg merge 11h 43m) (1,000 merged PRs in 30d)

Description

Does this issue occur when all extensions are disabled?: Yes

Version: 1.104.0-insider (user setup) Commit: 86f1b8fd472ae9cb26d24121a2476e40b98a0785 Date: 2025-09-01T07:47:15.390Z Electron: 37.3.1 ElectronBuildId: 12259562 Chromium: 138.0.7204.235 Node.js: 22.18.0 V8: 13.8.258.31-electron.0 OS: Windows_NT x64 10.0.19045

Steps to Reproduce:

  1. Open new folder and initialize git repository (git init)
  2. create new file and stage changes
  3. edit file further and save
  4. unstage stage changes

https://github.com/user-attachments/assets/bd7cabd2-3043-4b2e-b0d9-d3cf284c098f

Contributor guide