←back to thread

Oh Shit, Git?

(ohshitgit.com)
464 points Anon84 | 3 comments | | HN request time: 0s | source
Show context
franky47 ◴[] No.42730499[source]
One of the beauties of Git is that as long as you’ve created an object, it’s impossible to lose that work (short of nuking the .git directory).

Committing often is key. Precommit hooks (that take more than ~100ms) go against that.

replies(2): >>42730663 #>>42737278 #
1. ge96 ◴[] No.42730663[source]
I have had git corruption problems on a raspberry pi sd card, usually I just had to reclone/abandon that folder
replies(1): >>42732967 #
2. stephen_g ◴[] No.42732967[source]
It honestly sounds like git is the least of your problems here...
replies(1): >>42804752 #
3. ge96 ◴[] No.42804752[source]
yeah I can delete the .git folder and repull/add the remote origin, I had to do that again the other day. I'm not sure what it is, my SD card is a gold sandisk too not a cheapo.