git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Usability of git-update-ref <headname>

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 4, 2007, 04:12 UTC
Message-ID
<7vtzskq01j.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<46a038f90707031908x3fb2eb59ob0a57a33777363fb@mail.gmail.com>
"Martin Langhoff" <martin.langhoff@gmail.com> writes:
> Am I using the wrong command? I'd be happy to remove the bogus head
> and create a new one, but I don't think we have git-rm-ref.

Yes you are. Forget about update-ref. That is strictly for script consumption.

Show 5 quoted lines
>  # I think I'm on master, but I'm acually on maint
>  git-branch foo-feature
>  git-checkout foo-feature
>
>  # realise I've branched in the wrong place
   $ git reset --soft master
Previous: Martin Langhoff
Message 2 of 2 in “Usability of git-update-ref <headname>”
  1. Martin LanghoffJul 4, 2007
  2. Junio C HamanoJul 4, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.