Git headers and branch tags are pointers to commits, and these pointers can move either implicitly (after a commit ) or explicitly (after branch -m ).
Does Git record the status history of these pointers?
I see at least two reasons for this:
- To see the status of the repo two days ago, including where the branch headers were indicated.
- In order not to lose the story, because someone has moved the branch in such a way that some commits become inaccessible.
Note that the above is possible in Mercurial, because it stores the branch name in each commit.
So, does Git contain the contents of .git / refs / version or is there a way to make them like that?
(I'm trying to make a decision on Mercurial or Git for the team, and I want all changes in the general repo, including refs, to be recorded. I don't care what the developers do with their private repositories.)
Thanks.
git branch
Jake lundy
source share