Recover deleted git repository

Using PhotoRec to recover lost data
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
toididnoc
Posts: 1
Joined: 18 Aug 2020, 14:53

Recover deleted git repository

#1 Post by toididnoc »

I accidentally deleted a git repository, including the .git, not pushed since 3 weeks. I'm on ubuntu, with ext4 filesystem.
As a followup to this question:
viewtopic.php?p=5595#p5595,
I would like to know if photorec is able to recover git object files, or if there is any way to make it do it...

Thanks for any help!
recuperation
Posts: 3028
Joined: 04 Jan 2019, 09:48
Location: Hannover, Deutschland (Germany, Allemagne)

Re: Recover deleted git repository

#2 Post by recuperation »

I did not find the git-extension in the file option list of Photorec.
What are the other extensions?
You can easily look that information up yourself starting Photorec, selecting any disk and the proceeding with the file options.

When looking at the specifications it looks like a text file. I don't know if the term _deflate_ somehow indicates compression.
You would need to set up an individual fingerprint based on a keyword like "<blob>" , p.e.
Locked