Post4VPS Forum | Free VPS Provider
REVERT .GIT folder - Printable Version

+- Post4VPS Forum | Free VPS Provider (https://post4vps.com)
+-- Forum: General Chat (https://post4vps.com/Forum-General-Chat)
+--- Forum: General (https://post4vps.com/Forum-General)
+--- Thread: REVERT .GIT folder (/Thread-REVERT-GIT-folder)



REVERT .GIT folder - Vuluts - 10-11-2017

Hello guys!

Need your help, I got a .GIT folder and I want to REVERT it back to get all the file and download it.

Does anyone who are expert with GIT who can help me?

A guide or tutorial would be much appreciated.

Thanks a lot!


RE: REVERT .GIT folder - perry - 10-12-2017

git checkout 348ce0aa02d3738e55ac9085080028b548e3d8d3 -- path/to/the/folder/ ???

what do you mean exactly?


RE: REVERT .GIT folder - Vuluts - 10-12-2017

@perryoo11 someone made project and posted it on GITHUB but due to recent DMCA he needs to removed it, so what he did for us to get a copy of that project is that he share his .GIT folder thru google drive and he said that we just need to revert it to get and download the files.

Here's the screenshot of his .GIT folder

[Image: bOMJ8w][Image: bOMJ8w][Image: git.png]


RE: REVERT .GIT folder - perry - 10-12-2017

You need to move the pack objects outside the .git/objects/pack directory before using the command. However, the pack files need to be inside the repository.

For example, create a directory name SAMPLE in your project's root. Then, move the pack files to SAMPLE directory. After that, inside the repository without the pack files,
use the command git unpack-objects < SAMPLE/*.pack. Git will generate all objects inside .git/objects directory of your repository.