|
|
|
|
|
by adityaathalye
1212 days ago
|
|
Yes, I think it's a common case of getting the fact right, viz. branch == just a ref (true), but the understanding wrong, viz. ref == commit (false). A commit is an immutable object. Whereas a ref is a pointer, literally a place on disk (a regular file) that holds an address (plaintext SHA) to the latest point in a logical chain of commits. Meta remark: This is also what makes it ok to delete a branch after it is "done", and why it is ok to merge a standard working branch (like "develop") repeatedly into a target branch (like release/master/main/trunk). The semantic / meaning of a branch is transient. It is mutable conceptually and literally. edit: formatting |
|