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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]