0

The fetch was working fine before, now when I fetch from the remote GIT repository i got this following error (please refer screenshot below). even i give "y", i got the same issue

enter image description here Is anyone experienced this before? Please help me in this. Thanks in advance for any help.

Mohamed Hussain
  • 7,433
  • 14
  • 55
  • 85
  • Did you already check if it's a problem with a [lock](http://stackoverflow.com/questions/13635429/git-rename-from-index-lock-to-index-failed)? – Jan Mar 03 '15 at 08:16
  • @Jan: Thanks for help. How to check lock is there and how to resolve it? – Mohamed Hussain Mar 03 '15 at 08:21
  • For [Windows](http://superuser.com/questions/117902/easy-way-to-find-out-which-process-is-locking-a-file-or-folder-in-windows) you usually use the `Process Explorer` and for [Linux](http://askubuntu.com/questions/407605/how-to-identify-the-process-locking-a-file) I would use the `lsof` command on CLI – Jan Mar 03 '15 at 08:30
  • @Jan: How to unlock it? – Mohamed Hussain Mar 03 '15 at 08:40
  • Try to kill the process or simply just try restarting your computer ;) – Jan Mar 03 '15 at 08:41
  • @Jan: Which process you want me to kill i.e. git.exe? – Mohamed Hussain Mar 03 '15 at 08:44

1 Answers1

1

Looks like your pack file is corrupted.

Pack file is the "git database" where git store all its binary content. In your case it looks like its "broken" for some reason.

First of all execute git gc --aggressive and then verify that the repo is OK with git fsck

CodeWizard
  • 128,036
  • 21
  • 144
  • 167