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

Re: Rename case insensitive

From
Torsten Bögershausen <tboegi@web.de>
Date
Apr 8, 2016, 11:45 UTC
Message-ID
<570799DC.9000700@web.de>
In-Reply-To
<16238819-B46A-40C7-943A-EBD22EAACEF6@sina.com>
On 08.04.16 12:01, chenjinlei wrote:
Show 11 quoted lines
> 
> I’m encounter a problem due to my own stupidity…
> #1 I pushed a project named Android to my repository.
> #2 I `mv Android android`, cause I think it’s no good to use the uppercase as my project name.
> #3 I pushed it to my repository again…
> 
> I found that there `Adnroid` and `android` exist in my repository, and I want to delete the former one.
> So I tried to `git pull && git rm Android`, but guess what? I can’t pull the `Android`……
> 
> I found that OS X is case-insensitive, while github repository is case-sensitive, thus I can’t `rm Android` any more. It becomes a gosht in my repository and I can never delete it!
>
Correct.

#make a fresh clone of your repo to the local disc: git clone "repo_your_repo_name" temp_repo

# go into that repo cd temp_repo

# Tell Git to rename the folder in the Git repo: git mv Android android

#Commit git commit -m "mv Android android"

#Push back git push origin

HTH
Previous: chenjinlei
Message 2 of 2 in “bug to report”
  1. chenjinleiApr 8, 2016
  2. Torsten BögershausenApr 8, 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.