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

Re: git checkout -b -f v1.5.5.1

From
Eric Hanchrow <offby1@blarg.net>
Date
May 5, 2008, 16:03 UTC
Message-ID
<87zlr468n9.fsf@offby1.atm01.sea.blarg.net>
In-Reply-To
<dcf6addc0805050848v91589c6i6c2fca168b7644d5@mail.gmail.com>
    Hi, all
         I just mistaken 'git checkout -b 1.5.5.1 v1.5.5.1' to 'git
    checkout -b -f v1.5.5.1', and I don't how to delete it ,
      537  git-branch -D -f
      538  git-branch -D \-f
      539  git-branch -D "\-f"
         all the above operations were failed. :(
         PS: Would it be better if we do checking on branch name to avoid
    this case?
You could probably just
    rm .git/refs/heads/-f
and if necessary, replace the content of .git/HEAD with something else.
-- 
FIXME if it is wrong.

-- 

                               _
                              / )
              (\__/)         ( (
              )    (          ) )
            ={      }=       / /
              )     `-------/ /
             (               /
              \             )
             ,'\       ,    ,'
             `-'\  ,---\   | \
                _) )    `. \ /
               (__/       ) )   hjw
                         (_/
Previous: Jun Ma
Message 4 of 4 in “git checkout -b -f v1.5.5.1”
  1. Jun MaMay 5, 2008
  2. Stephan BeyerMay 5, 2008
  3. Jun MaMay 5, 2008
  4. Eric HanchrowMay 5, 2008

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.