Microsoft/vscode

No option for commit --amend if working with detached HEAD

Open

#247.936 geöffnet am 1. Mai 2025

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (1 zugewiesene Person)TypeScript (10.221 Forks)batch import
buggithelp wantedteam-low-hanging

Repository-Metriken

Stars
 (74.848 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 11h 43m) (1.000 gemergte PRs in 30 T)

Beschreibung

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

Version: 1.99.3 (user setup) Commit: 17baf841131aa23349f217ca7c570c76ee87b957 Date: 2025-04-15T23:18:46.076Z Electron: 34.3.2 ElectronBuildId: 11161073 Chromium: 132.0.6834.210 Node.js: 20.18.3 V8: 13.2.152.41-electron.0 OS: Windows_NT x64 10.0.26100

Steps to Reproduce:

If I work on a branch I get the small pulldown on the commit button to be able to choose commit --amend.

But if I work on detached HEAD (for example git checkout HEAD~1) that option will not be available.

This is a common workflow for me: checking out from Gerrit, make some change, amend and push back to gerrit without need for a branch.

Contributor Guide