{"action":"created","issue":{"url":"https://api.github.com/repos/git-tfs/git-tfs/issues/901","labels_url":"https://api.github.com/repos/git-tfs/git-tfs/issues/901/labels{/name}","comments_url":"https://api.github.com/repos/git-tfs/git-tfs/issues/901/comments","events_url":"https://api.github.com/repos/git-tfs/git-tfs/issues/901/events","html_url":"https://github.com/git-tfs/git-tfs/issues/901","id":124569265,"number":901,"title":"After Copying the directory from one machine to another, it started to give me an error","user":{"login":"codemerlin","id":919686,"avatar_url":"https://avatars.githubusercontent.com/u/919686?v=3","gravatar_id":"","url":"https://api.github.com/users/codemerlin","html_url":"https://github.com/codemerlin","followers_url":"https://api.github.com/users/codemerlin/followers","following_url":"https://api.github.com/users/codemerlin/following{/other_user}","gists_url":"https://api.github.com/users/codemerlin/gists{/gist_id}","starred_url":"https://api.github.com/users/codemerlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codemerlin/subscriptions","organizations_url":"https://api.github.com/users/codemerlin/orgs","repos_url":"https://api.github.com/users/codemerlin/repos","events_url":"https://api.github.com/users/codemerlin/events{/privacy}","received_events_url":"https://api.github.com/users/codemerlin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-02T01:05:57Z","updated_at":"2016-01-03T12:57:17Z","closed_at":null,"body":"So, we have a git tfs clone in local machine, after copying the directory form one machine to another. I started to get following error \r\n\r\n```\r\nerror: bad index file sha1 signature\r\nfatal: index file corrupt\r\n```\r\n\r\ni tried fixing the that by following the suggestions on the web \r\n\r\n```\r\ndel .git\\index\r\ngit reset\r\n```\r\n\r\nand after that I can see following error\r\n\r\n```\r\nerror: file .git/objects/pack/pack-b4f2548a93d0ad7d65d71a7271cf66e76097ef0f.pack is not a GIT packfile\r\nerror: file .git/objects/pack/pack-b4f2548a93d0ad7d65d71a7271cf66e76097ef0f.pack is not a GIT packfile\r\n```"},"comment":{"url":"https://api.github.com/repos/git-tfs/git-tfs/issues/comments/168496299","html_url":"https://github.com/git-tfs/git-tfs/issues/901#issuecomment-168496299","issue_url":"https://api.github.com/repos/git-tfs/git-tfs/issues/901","id":168496299,"user":{"login":"spraints","id":20158,"avatar_url":"https://avatars.githubusercontent.com/u/20158?v=3","gravatar_id":"","url":"https://api.github.com/users/spraints","html_url":"https://github.com/spraints","followers_url":"https://api.github.com/users/spraints/followers","following_url":"https://api.github.com/users/spraints/following{/other_user}","gists_url":"https://api.github.com/users/spraints/gists{/gist_id}","starred_url":"https://api.github.com/users/spraints/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spraints/subscriptions","organizations_url":"https://api.github.com/users/spraints/orgs","repos_url":"https://api.github.com/users/spraints/repos","events_url":"https://api.github.com/users/spraints/events{/privacy}","received_events_url":"https://api.github.com/users/spraints/received_events","type":"User","site_admin":true},"created_at":"2016-01-03T12:57:17Z","updated_at":"2016-01-03T12:57:17Z","body":"> Does that mean the tfs is also corrupted\r\n\r\nTFS should be unaffected. The errors made it look like you ended up with a bad copy of `.git/objects/pack/pack-b4f25..` and a bad copy of your index. You fixed the index, but you'll need a good copy of the packfile to fix that. `git fsck --full` may tell you about other things that are corrupted, but it's all just in that copy of the git repository."}}