4 ms·
You're correct, they're just files. To create a new branch off of master you can just... cp .git/refs/heads/master .git/refs/heads/WTFFF ... no SHA-1 invol
by ericfrederich 9y ago
You're correct, they're just files. To create a new branch off of master you can just...
cp .git/refs/heads/master .git/refs/heads/WTFFF
... no SHA-1 involved at all, no parent, history, etc.
- swsieber 9y agoHowever what they point to are git objects. And being pointed to prevent them from being garbage collected (pruned).