Git Errors

Git Errors Solution

Fatal: loose object…is corrupt

Description

1
2
error: object file .git/objects/9a/83e9c5b3d697d12a2e315e1777ceaf27ea1bab is empty 
fatal: loose object 9a83e9c5b3d697d12a2e315e1777ceaf27ea1bab (stored in .git/objects/9a/83e9c5b3d697d12a2e315e1777ceaf27ea1bab) is corrupt

Solution

1
2
3
4
5
6
rm -fr .git  
git init
git remote add origin your-git-remote-url
git fetch
git reset --hard origin/master
git branch --set-upstream-to=origin/master master
Contents
  1. 1. Git Errors Solution
    1. 1.1. Fatal: loose object…is corrupt
      1. 1.1.1. Description
      2. 1.1.2. Solution