Julia Evans on Nostr: does anyone understand why, inside a git worktree, on Mac OS, `git rev-parse head` ...
does anyone understand why, inside a git worktree, on Mac OS, `git rev-parse head` and `git rev-parse HEAD` are different?
`git rev-parse head` seems to give me the revision of the value of HEAD in the "main" worktree
(no, I don't have a branch or tag called "head”)
Published at
2024-06-28 18:04:05Event JSON
{
"id": "c046852061828df6fde2edbeb0fd07f53100f2cef4890bc8ca5f71a6fe266448",
"pubkey": "26cad6f140bf86de9c26b7c15419cab1aebdd7086358d26aa2d750e21cf3bf2e",
"created_at": 1719597845,
"kind": 1,
"tags": [
[
"proxy",
"https://social.jvns.ca/users/b0rk/statuses/112695564392173639",
"activitypub"
]
],
"content": "does anyone understand why, inside a git worktree, on Mac OS, `git rev-parse head` and `git rev-parse HEAD` are different?\n\n`git rev-parse head` seems to give me the revision of the value of HEAD in the \"main\" worktree\n\n(no, I don't have a branch or tag called \"head”)\n\nhttps://cdn.masto.host/socialjvnsca/media_attachments/files/112/695/564/063/502/559/original/a057360b0a752374.png",
"sig": "f39b18455896a4a630a0125a8003c9437c54231eb007fec67d9fef5f99d741933d317a0b602c6259a82c27ff9473d66e237b4ced0ec409a5cc7823b90c317e08"
}