1

I am new to Git, I have cloned a repository with git clone, but I did not obtain any C++ source file (project is written in C++), but instead I have obtained two files in .git/objects/pack, with *.pack and *.idx extension.

I followed this guide to unpack the archives. Now I have in the objects folder 255 folders from 00 to ff which cointain binary files, and I don't know how to obtain the source files needed for working on the project.

Could anyone explain me what these 255 folders are and if there is a way to obtain the source files from them? Thanks in advance.

EDIT:

The command used to clone the repo is:

    git clone [email protected]:/path/to/repo
6
  • Please include the git command that you use to clone the repository in your question.
    – Lee Duhem
    Commented Oct 3, 2016 at 13:32
  • Looks like it is not a public repository we can test, so I guess your best shot is to ask the author of that repository what's going on.
    – Lee Duhem
    Commented Oct 3, 2016 at 13:40
  • No is not public. I thought it was a common situation to retrieve the contents of a git repository from the object directory. Commented Oct 3, 2016 at 13:45
  • 1
    It's not, git should do it for you automatically.
    – Lee Duhem
    Commented Oct 3, 2016 at 13:54
  • What is the output of git status and git log --oneline --decorate? Commented Oct 10, 2016 at 23:31

0

Browse other questions tagged or ask your own question.