Thank you for filling out a Git bug report! Please answer the following questions to help us understand your issue. What did you do before the bug happened? (Steps to reproduce your issue) i typed this command in order: git checkout ca35d53 git tag 1.1.2 git commit --allow-empty -m "want to commit at any cost" (i just wanted to commit to catch the bug) What did you expect to happen? (Expected behavior) when I checkout, it was showing the commit id at the place of HEAD Point: vaibh@VaibhavNaik MINGW64 /d/E Drive/MyCodes/Git-Testing ((ca35d53...)) and then after creating a new tag it was showing the tag name at the place of HEAD Point: vaibh@VaibhavNaik MINGW64 /d/E Drive/MyCodes/Git-Testing ((1.1.2)) which is wrong, that place is to show where the HEAD is pointing at and not the newly created tag name What happened instead? (Actual behavior) It showed the newly created tag name at the place of the HEAD Point: vaibh@VaibhavNaik MINGW64 /d/E Drive/MyCodes/Git-Testing ((1.1.2)) What's different between what you expected and what actually happened? It should show the the detached HEAD commit id at the place of HEAD Point and not the newly created tag name I proved this wrong by doing a commit which didn't got committed to any branch or tag but it moved the HEAD: vaibh@VaibhavNaik MINGW64 /d/E Drive/MyCodes/Git-Testing ((newt)) $ git commit --allow-empty -m "want to commit at any cost" [detached HEAD caad8ef] want to commit at any cost vaibh@VaibhavNaik MINGW64 /d/E Drive/MyCodes/Git-Testing ((caad8ef...)) $ git status HEAD detached from ca35d53 nothing to commit, working tree clean it showed the tag name in the brackets Anything else you want to add: Please review the rest of the bug report below. You can delete any lines you don't wish to share. [System Info] git version: git version 2.43.0.windows.1 cpu: x86_64 built from commit: 4b968f3ea3b32a7bc50846bab49f3f381841d297 sizeof-long: 4 sizeof-size_t: 8 shell-path: /bin/sh feature: fsmonitor--daemon uname: Windows 10.0 22631 compiler info: gnuc: 13.2 libc info: no libc information available $SHELL (typically, interactive shell): C:\Program Files\Git\usr\bin\bash.exe [Enabled Hooks]