threads / discuss / 38127

Cannot reset a repo

Subject: Cannot reset a repo

## tl;dr

4 messages between Dec 6, 2014 and Dec 7, 2014.

replies: 3people: 3as markdown or json

Martin Wendt· Dec 6, 2014, 10:27 UTC · lore
Hi,
I am facing this problem:
  - Using git version 1.9.3 (Apple Git-50)
  - cloned a fork from GitHub to my local machine:
https://github.com/mar10/cdnjs/
  - This repo seems to be broken in some way.
    At least it is not clean from the beginning and I am not able to reset
    `git reset --hard` only toggles the modified file from
".../sortable" to ".../Sortable" and back
    (see attached screenshot)

Is this a known problem (with case sensitivity)? Any suggestions how to fix it?

Thanks Martin

Torsten Bögershausen· Dec 6, 2014, 12:14 UTC · re: Martin Wendt · lore

Re: Cannot reset a repo

On 2014-12-06 11.27, Martin Wendt wrote:
Show 14 quoted lines
> Hi,
> 
> I am facing this problem:
> 
>   - Using git version 1.9.3 (Apple Git-50)
>   - cloned a fork from GitHub to my local machine:
> https://github.com/mar10/cdnjs/
>   - This repo seems to be broken in some way.
>     At least it is not clean from the beginning and I am not able to reset
>     `git reset --hard` only toggles the modified file from
> ".../sortable" to ".../Sortable" and back
>     (see attached screenshot)
> 
> Is this a known problem (with case sensitivity)? 
I think so
>Any suggestions how to  fix it?

Try to rename Sortable into Sortable.u: git mv Sortable Sortable.upper (When that does not work) git mv sortable sortable.lower

If this is not an option, use a USB Stick, format it with HFS+ "case sensitive" and clone the repo to the stick

Martin Wendt· Dec 6, 2014, 16:01 UTC · re: Torsten Bögershausen · lore

Re: Cannot reset a repo

Show 28 quoted lines
> Am 06.12.2014 um 13:14 schrieb Torsten Bögershausen <tboegi@web.de>:
> 
> On 2014-12-06 11.27, Martin Wendt wrote:
>> Hi,
>> 
>> I am facing this problem:
>> 
>>  - Using git version 1.9.3 (Apple Git-50)
>>  - cloned a fork from GitHub to my local machine:
>> https://github.com/mar10/cdnjs/
>>  - This repo seems to be broken in some way.
>>    At least it is not clean from the beginning and I am not able to reset
>>    `git reset --hard` only toggles the modified file from
>> ".../sortable" to ".../Sortable" and back
>>    (see attached screenshot)
>> 
>> Is this a known problem (with case sensitivity)? 
> I think so
>> Any suggestions how to  fix it?
> 
> Try to rename Sortable into Sortable.u:
> git mv Sortable Sortable.upper
> (When that does not work)
> git mv sortable sortable.lower
> 
> If this is not an option, use a USB Stick, format it with HFS+ "case sensitive"
> and clone the repo to the stick
> 

Thanks for responding. It is a fork of the 6GB cdnjs repository and I don't own the sortable lib. So renaming is not an option. Also, I am working on a MacBook, which already has a case sensitive file system.

Martin Wendt· Dec 7, 2014, 15:34 UTC · lore

Re: Cannot reset a repo

arghh, sorry that's embarrassing. I was sure that the Mac filesystem was case sensitive by default, because it's unix based... Thanks for your support.

Show 35 quoted lines
> Am 07.12.2014 um 11:06 schrieb Torsten Bögershausen <tboegi@web.de>:
> 
> On 06.12.14 14:39, Martin Wendt wrote:
>>> Am 06.12.2014 um 13:14 schrieb Torsten Bögershausen <tboegi@web.de>:
>>> 
>>> On 2014-12-06 11.27, Martin Wendt wrote:
>>>> Hi,
>>>> 
>>>> I am facing this problem:
>>>> 
>>>> - Using git version 1.9.3 (Apple Git-50)
>>>> - cloned a fork from GitHub to my local machine:
>>>> https://github.com/mar10/cdnjs/
>>>> - This repo seems to be broken in some way.
>>>>   At least it is not clean from the beginning and I am not able to reset
>>>>   `git reset --hard` only toggles the modified file from
>>>> ".../sortable" to ".../Sortable" and back
>>>>   (see attached screenshot)
>>>> 
>>>> Is this a known problem (with case sensitivity)? 
>>> I think so
>>>> Any suggestions how to  fix it?
>>> Try to rename Sortable into Sortable.u:
>>> git mv Sortable Sortable.upper
>>> (When that does not work)
>>> git mv sortable sortable.lower
>>> 
>>> If this is not an option, use a USB Stick, format it with HFS+ "case sensitive"
>>> and clone the repo to the stick
>>> 
>> 
>> Thanks for responding.
>> It is a fork of the 6GB cdnjs repository and I don't own the sortable lib. So renaming is not an option.
> Can you fix it a send a pull request to the author on github ?
>> Also, I am working on a MacBook, which already has a case sensitive file system

← back to recent threads