vv221 on Nostr: I think using git switch instead of git checkout is what helped me to understand what ...
I think using git switch instead of git checkout is what helped me to understand what a detached HEAD state is.
Simply because git checkout $commit translates to git switch --detach $commit so I had to explicitly write that I wanted to enter a detached HEAD state, while it was more implicit with the previous command.
Published at
2024-02-21 14:15:07Event JSON
{
"id": "86ee2c807154884ec87750ff5682c49dbbd3bc1b0612ba52098a2f54bc76918a",
"pubkey": "c81a16564bf2529e13b69a427ac8d0a5078e4eaddbefeda0e99d836714d1271b",
"created_at": 1708524907,
"kind": 1,
"tags": [
[
"p",
"26cad6f140bf86de9c26b7c15419cab1aebdd7086358d26aa2d750e21cf3bf2e",
"wss://relay.mostr.pub"
],
[
"e",
"7331f7d595959ce384b6eb4fd643d083d18e396d6820d426aa04ea4d7efb95b0",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://fediverse.dotslashplay.it/snac/vv221/p/1708524907.527278",
"activitypub"
]
],
"content": "I think using git switch instead of git checkout is what helped me to understand what a detached HEAD state is.\n\nSimply because git checkout $commit translates to git switch --detach $commit so I had to explicitly write that I wanted to enter a detached HEAD state, while it was more implicit with the previous command.\n",
"sig": "b9aa1ca1ff3b2a2c2b4dcb53f31b717cd654675cf105d502ae9ff884d5e12dba7c25f2d300cc5d932c562fce24a9776621cf28c56f1723a7f673b59015b68b64"
}