From: mirth hickford <mirth.hickford@gmail.com>
To: git@vger.kernel.org
Subject: Bug: `git switch --detach` gives inapplicable advice
Date: Sat, 30 Mar 2024 07:49:58 +0000 [thread overview]
Message-ID: <CAKcCxfAVGr2QoaXiT81gVZ0mfq3zJs7TywRhJzevwKX7wChJ4w@mail.gmail.com> (raw)
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.
next reply other threads:[~2024-03-30 7:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-30 7:49 mirth hickford [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAKcCxfAVGr2QoaXiT81gVZ0mfq3zJs7TywRhJzevwKX7wChJ4w@mail.gmail.com \
--to=mirth.hickford@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).