From: "Torsten Bögershausen" <tboegi@web.de>
To: chenjinlei <chenjinlei456@sina.com>, git@vger.kernel.org
Subject: Re: Rename case insensitive
Date: Fri, 8 Apr 2016 13:45:32 +0200 [thread overview]
Message-ID: <570799DC.9000700@web.de> (raw)
In-Reply-To: <16238819-B46A-40C7-943A-EBD22EAACEF6@sina.com>
On 08.04.16 12:01, chenjinlei wrote:
>
> 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
prev parent reply other threads:[~2016-04-08 11:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-08 10:01 bug to report chenjinlei
2016-04-08 11:45 ` Torsten Bögershausen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=570799DC.9000700@web.de \
--to=tboegi@web.de \
--cc=chenjinlei456@sina.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).