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

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

From
郭郭腾飞 <tfguo369@gmail.com>
Date
Jan 14, 2016, 07:52 UTC
Message-ID
<CAB4fgE81JHzU=KmN9e=pjsurboipQ3K-pMu-26j+o+FU5G7tQQ@mail.gmail.com>

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

Next: Torsten Bögershausen
Message 1 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.