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

Re: git reset --hard isn't resetting

From
Dmitry Potapov <dpotapov@gmail.com>
Date
Aug 6, 2008, 18:01 UTC
Message-ID
<37fcd2780808061101p6b75a663hb54f3cb6ad88314f@mail.gmail.com>
In-Reply-To
<1c5969370808060941q59cb8f7fhabee3ef3c5107715@mail.gmail.com>
Hi,
On Wed, Aug 6, 2008 at 8:41 PM, Matt Graham <mdg149@gmail.com> wrote:
Show 8 quoted lines
> I'm using a git svn tree in Cygwin.  I tried doing an svn rebase and
> got in some weird state with local changes I can't get rid of.  It's
> not an issue w/ the same repository on my linux machine.
>
> git reset --hard
> toggles 4 files between capitalization.  The files don't appear to
> have changed case in svn, but it's a huge repository and not easy to
> determine with certainty.

What version of Git do you use? Was this repo created with Git prior 1.5.6? Do you have core.ignorecase set to true in .git/config?

What "git ls-files" says for these files? What "ls" says for these files?

Dmitry
Previous: Matt GrahamNext: Avery Pennarun
Message 2 of 6 in “git reset --hard isn't resetting”
  1. Matt GrahamAug 6, 2008
  2. Dmitry PotapovAug 6, 2008
  3. Avery PennarunAug 6, 2008
  4. Matt GrahamAug 8, 2008
  5. Avery PennarunAug 8, 2008
  6. Eric WongAug 9, 2008

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.