mcc on Nostr: Reasons I hate git tonight. - If you delete a file, then realize you didn't want to ...
Reasons I hate git tonight.
- If you delete a file, then realize you didn't want to do this , you can bring it back with `git checkout -- filepath`. But if you accidentally delete a directory, and you want to bring it back, this won't work. You have to say `git reset -- dirpath && git checkout -- dirpath`. No one will tell you this. StackOverflow, on this subject, just lies.
- Want to create a git archive and exclude certain files from it? THIS IS GONNA BE THE HARDEST THING IN THE FUCKIN WORLD
Published at
2024-08-07 04:22:28Event JSON
{
"id": "fad2df0f3d8859382ae4314a3e86a897637ee5c186a4a2966eebc30d04c68133",
"pubkey": "a3162b9720f6b515ac4bd22d5ea4abf0f85f5685130dca40f46fe684fe85b255",
"created_at": 1722997348,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/mcc/statuses/112918354262437904",
"activitypub"
]
],
"content": "Reasons I hate git tonight.\n\n- If you delete a file, then realize you didn't want to do this , you can bring it back with `git checkout -- filepath`. But if you accidentally delete a directory, and you want to bring it back, this won't work. You have to say `git reset -- dirpath \u0026\u0026 git checkout -- dirpath`. No one will tell you this. StackOverflow, on this subject, just lies.\n\n- Want to create a git archive and exclude certain files from it? THIS IS GONNA BE THE HARDEST THING IN THE FUCKIN WORLD",
"sig": "aa56fd861ef648f033fbc8224ee821f420c56d8a1619ed7ca7cec1ff580fbd4e749bc7547f8a6ba6370feb4cf46fc7677d2500fb712afa214707f80290aef6d1"
}