user9329423
user9329423

Reputation: 51

What are the references within Git's pack/ and info/ folders?

I have read the relevant git documentation:

https://git-scm.com/book/en/v2/Git-Internals-Git-References

I have not found any information about the .git/objects/refs/heads/info directory; though I understand that .git/objects/refs/heads/pack is for pack-files.

However, it is permitted to create branches such as:

$ git branch info/my_branch
$ git branch pack/my_branch

which will then be located at .git/objects/refs/heads/info/my_branch and .git/objects/refs/heads/info/my_branch.

I am writing a Python script in order to parse my Git objects in a certain way, with one step being to look for all the branch references. I realize now I need to also look into info and pack and sort out conflicts.

What is the info directory typically used for otherwise?

Upvotes: 1

Views: 89

Answers (1)

Shimmie Shkedi
Shimmie Shkedi

Reputation: 1

The info() method prints information about the DataFrame. The information contains the number of columns, column labels, column data types, memory usage, range index, and the number of cells in each column (non-null values). Note: the info() method actually prints the info.

Upvotes: -1

Related Questions