LWN.net Logo

Bazaar on the slow track

Bazaar on the slow track

Posted Sep 12, 2012 15:54 UTC (Wed) by mgedmin (subscriber, #34497)
In reply to: Bazaar on the slow track by robert_s
Parent article: Bazaar on the slow track

It's easier to recover from a bad rebase with git reflog than with git fsck.


(Log in to post comments)

Bazaar on the slow track

Posted Sep 13, 2012 0:06 UTC (Thu) by nix (subscriber, #2304) [Link]

Quite. I'd venture to say that if you're using git fsck, you haven't had a hardware failure, and you're not hacking git, you're probably doing something unnecessary. It's *that* reliable. (I'd actually almost forgotten that git fsck existed: I haven't run it in anger in years.)

I concur that it is nearly impossible to lose work in git: making a new branch before doing something you're scared about suffices in basically all cases, and if you forget that there is the reflog. I've done massive history rewrites and routinely do partial history rewrites and tree partitions and have never lost a byte. (Having said that, I'm sure something horrible will happen now and I'll lose the last year's work or something. Not even git is immune to Murphy's Law.)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds