Re: Bug in git branch --show-current

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 27, 2025, at 09:00, Ulrich Wittenberg wrote:
> What happened instead? (Actual behavior)
> The command returns absolutely nothing.

This is the documented behavior for detached HEAD.

It sounds like you want to know what branches point to the commit you
are detached at?

    git for-each-ref --format='%(refname:short)' --points-at=HEAD refs/heads/

-- 
Kristoffer Haugsbakk




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux