4 ms·
Branches in git are just pointers. If two branches point to the same commit, they're the same branch.
by _ikke_ 14y ago
Branches in git are just pointers. If two branches point to the same commit, they're the same branch.
- bronson 14y agoIf two pointers point to the same memory location, are they the same pointer? No. Two branches are two branches, even if they point to the same commit. Update one branch, the other remains unchanged.
- alinajaf 14y agoWhat the other response said + they don't point to the same commit. No branch in your git repo can point to a commit in another repo, even if those commits have the same hash.