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

Re: [issue?]'git branch -D' case sensitive issue

From
Torsten Bögershausen <tboegi@web.de>
Date
Jan 14, 2016, 11:51 UTC
Message-ID
<56978BA9.2010005@web.de>
In-Reply-To
<CAB4fgE81JHzU=KmN9e=pjsurboipQ3K-pMu-26j+o+FU5G7tQQ@mail.gmail.com>
On 01/14/2016 08:52 AM, 郭腾飞 wrote:
Show 35 quoted lines
> Hi All,
> I encountered some issues when using 'git branch -D'.
> It's strange, the command 'git branch -D' is case sensitive.
> Here is the operated log.
>
> ➜  my-emacs-conf git:(NIce) git branch -avv
> * NIce                  fed5d9c Update js2-mode $ js-beautify.
>    master                fed5d9c [origin/master] Update js2-mode $ js-beautify.
>    remotes/origin/HEAD   -> origin/master
>    remotes/origin/fake   8ec9cad fake.
>    remotes/origin/mac13  13ae483 mac pro 13's config.
>    remotes/origin/master fed5d9c Update js2-mode $ js-beautify.
> ➜  my-emacs-conf git:(NIce)
> ➜  my-emacs-conf git:(NIce) git branch -D NIce
> error: Cannot delete the branch 'NIce' which you are currently on.
> ➜  my-emacs-conf git:(NIce)
> ➜  my-emacs-conf git:(NIce) git branch -D NICe
> Deleted branch NICe (was fed5d9c).
> ➜  my-emacs-conf git:(NIce) ✗ git branch -avv
>    master                fed5d9c [origin/master] Update js2-mode $ js-beautify.
>    remotes/origin/HEAD   -> origin/master
>    remotes/origin/fake   8ec9cad fake.
>    remotes/origin/mac13  13ae483 mac pro 13's config.
>    remotes/origin/master fed5d9c Update js2-mode $ js-beautify.
>
> Hope someone can give me a hint.
>
> ➜  my-emacs-conf git:(NIce) ✗ git --version
> git version 2.6.3
> ➜  my-emacs-conf git:(NIce) ✗ sw_vers -productVersion
> 10.11 OSX
>
> BRs,
> terry3
> --
If you can give us a hint, under which OS you are working ?

I assume that you are on Windows or Mac OS ? In this case the file system is part of the problem, which treats NIce and NICe the same.

Previous: 郭腾飞Next: 郭腾飞
Message 2 of 6 in “[issue?]'git branch -D' case sensitive issue”
  1. 郭腾飞Jan 14, 2016
  2. Torsten BögershausenJan 14, 2016
  3. 郭腾飞Jan 14, 2016
  4. Torsten BögershausenJan 14, 2016
  5. Junio C HamanoJan 14, 2016
  6. Jeff KingJan 15, 2016

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.