git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bug: `git switch --detach` gives inapplicable advice
@ 2024-03-30  7:49 mirth hickford
  2024-03-30 21:37 ` [PATCH] checkout: do not bother "tracking" report on detached HEAD Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: mirth hickford @ 2024-03-30  7:49 UTC (permalink / raw)
  To: git

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-04-05 17:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-30  7:49 Bug: `git switch --detach` gives inapplicable advice mirth hickford
2024-03-30 21:37 ` [PATCH] checkout: do not bother "tracking" report on detached HEAD Junio C Hamano
2024-04-05  7:00   ` M Hickford
2024-04-05 17:07     ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).