Git - Non-Monotonous Index

I am cloning a git repository on my local machine. During this process, the command displays many of the following error messages:

error: non-monotonic index .git/objects/pack/._pack-*.idx

These messages remain on the traction or on the switch branches, for example, but everything works. The local repository does not look corrupted or something like that.

Any ideas on bugs?

+2
source share
3 answers

It seems like this is just a bunch of ._ files created by OSX and git that don't understand that you need to ignore them. I had the same problem with a lot of such files. Just removing ._ * seems to have solved it.

+1
source

: http://git.661346.n2.nabble.com/Error-non-monotonic-index-after-failed-recursive-quot-sed-quot-command-td7575014.html

TL; DR: , . linux :

> rm .git/objects/pack/pack-*.idx
> git index-pack .git/objects/pack/pack-*.pack 

git gc --prune=now git remote prune origin, , , , .

0

"._pack - *. idx" MacOS .

, : my-repo.git/object/pack. pack * idx , MacOS , ._

, .

0

All Articles