# git fsck finds duplicate entries

2 messages from 2019-05-28 to 2019-05-28. Participants: Dominy, Patrick A, Ævar Arnfjörð Bjarmason.
Thread: https://gitlist.dev/t/51191

## Dominy, Patrick A, 2019-05-28 21:42

Subject: git fsck finds duplicate entries
Message-ID: <2FFF873C-0FCB-4E5F-BEA2-BCE54A623D1E@uiowa.edu>
URL: https://gitlist.dev/e/2FFF873C-0FCB-4E5F-BEA2-BCE54A623D1E%40uiowa.edu

```
Hi,
Running git fsck against one of our repositories yields the following:
Error in tree xxxxxxx: duplicateEntries: contains duplicate file entries
 
We are struggling with the best approach to resolve the issue.  We’ve used git replace, which successfully creates the replace reference, but fsck still returns the same duplicate entry error.
The commit that introduced the issue happened some time ago, making going back to the bad commit and replaying the commits a daunting task.
Any suggestions would be much appreciated.
 
Thanks


```

## Ævar Arnfjörð Bjarmason, 2019-05-28 22:48

Subject: Re: git fsck finds duplicate entries
Message-ID: <87d0k2mbzh.fsf@evledraar.gmail.com>
URL: https://gitlist.dev/e/87d0k2mbzh.fsf%40evledraar.gmail.com
In-Reply-To: <2FFF873C-0FCB-4E5F-BEA2-BCE54A623D1E@uiowa.edu>

```

On Tue, May 28 2019, Dominy, Patrick A wrote:

> Hi,
> Running git fsck against one of our repositories yields the following:
> Error in tree xxxxxxx: duplicateEntries: contains duplicate file entries
>
> We are struggling with the best approach to resolve the issue.  We’ve used git replace, which successfully creates the replace reference, but fsck still returns the same duplicate entry error.
> The commit that introduced the issue happened some time ago, making going back to the bad commit and replaying the commits a daunting task.
> Any suggestions would be much appreciated.

At this point you either rewrite the repository or live with it. To live
with it see the fsck.skipList documentation in git-config(1). I.e. you'd
whitelist this tree as known-bad.

```
