Help with GIT recovery

Asked

Viewed 53 times

0

Staff I had performed a backup of my right /.git/ and zipped.

However I had problems in this file , I was able to unzip but with errors. I wonder if you have a command to perform a FORCE for it to try to recover what is possible from that /.git/

  • What’s the exit error?

  • And why can’t you just clone the rep again to generate this folder?

  • There’s no point in you giving one git pull?

1 answer

0

First, make a folder to re-create a deposit:

mkdir repo
mv .git repo
cd repo

Then delete empty files (coruptos)

find .git -size 0 -delete

Try a file system scan:

git fsck

If you have another deposit, use it to rebuild what is missing:

git remote add origin url
git fetch origin

Browser other questions tagged

You are not signed in. Login or sign up in order to post.