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

Re: Cannot reset a repo

From
MWMartin Wendt <martin@wwwendt.de>
Date
Dec 6, 2014, 16:01 UTC
Message-ID
<C1046576-F27C-4C93-9C67-239FDAE46D23@wwWendt.de>
In-Reply-To
<5482F32C.40709@web.de>
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.

Previous: Torsten BögershausenNext: Martin Wendt
Message 3 of 4 in “Cannot reset a repo”
  1. Martin WendtDec 6, 2014
  2. Torsten BögershausenDec 6, 2014
  3. Martin WendtDec 6, 2014
  4. Martin WendtDec 7, 2014

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.