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

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

From
郭郭腾飞 <tfguo369@gmail.com>
Date
Jan 14, 2016, 13:28 UTC
Message-ID
<CAB4fgE-UbTD6AkTaxyknJ+3ggtzRdYN43wgsamTXOYmGqDQ3_A@mail.gmail.com>
In-Reply-To
<56978BA9.2010005@web.de>

Hi Torsten Bögershausen, thank you for the quick reply. I'm working on Mac OS as I have mentioned in the previous email.

➜ my-emacs-conf git:(NIce) ✗ sw_vers -productVersion 10.11 OSX

And besides, I use a case sensitive file system in OSX through the command 'hdiutil create -volname 'case_fs' -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 100g ~/case_fs.sparseimage' Is this a known issue? Thank you!

BRs terry3

2016-01-14 19:51 GMT+08:00 Torsten Bögershausen <tboegi@web.de>:
Show 46 quoted lines
> On 01/14/2016 08:52 AM, 郭腾飞 wrote:
>>
>> 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.
>
-- 
________________________________
Guo Tengfei
Previous: Torsten BögershausenNext: Torsten Bögershausen
Message 3 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.