Bug: `git switch --detach` gives inapplicable advice

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

 



Is this a bug? "Your branch can be fast-forwarded" doesn't apply to a
detached HEAD.

> git switch main
> git reset --hard origin/main~1
> git switch --detach main
HEAD is now at 5a07c3bde Refactor...
Your branch is behind 'origin/main' by 1 commit, and can be fast-forwarded.
  (use "git pull" to update your local branch)

> git pull
You are not currently on a branch.




[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