Skip to content

Cannot merge branch into detached HEAD #3445

@MetRonnie

Description

@MetRonnie

Description

  1. Check out a commit in detached HEAD mode
  2. Right click a branch and choose "Merge Branch Into Current Branch..."
    image

It doesn't work, and gives this incorrect message despite HEAD not containing the changes from the branch

image

Nothing to merge; (<SHA>) is already up to date

GitLens Version

15.2.3

VS Code Version

Version: 1.92.0 (system setup)
Commit: b1c0a14de1414fcdaa400695b4db1c0799bc3124
Date: 2024-07-31T23:26:45.634Z
Electron: 30.1.2
ElectronBuildId: 9870757
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.19045

Git Version

git version 2.46.0.windows.1

Logs, Screenshots, Screen Captures, etc

No new lines in the GitLens log when I try this

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions