3 ms·
This is really great! I'd suggest one edit in the first entry: “heads” are “branches” --> a "head" is the end of any given "branch" This makes it a little cl
by chrisbrandow 3y ago
This is really great!
I'd suggest one edit in the first entry:
“heads” are “branches” --> a "head" is the end of any given "branch"
This makes it a little clearer when talking about detached head state, since switching to a commit on a branch can still leave you detached.
I was confused by that when I got to your detached head description, so I double-checked.
- e40 3y ago> “heads” are “branches” --> a "head" is the end of any given "branch" and throw "tip" in there, as in "HEAD is the tip of the current branch".
- ryeights 3y agoThat’s not quite right is it? HEAD is simply a pointer to whatever commit is currently on disk. HEAD can point to a commit that is the end of a branch (typical state, HEAD is “attached”), but it can also point to one that isn’t (HEAD is “detached”).
- chrisbrandow 3y agocorrect, but I was referring to lowercase "head".
- ryeights 3y agoHa. Right you are