News for hackers. Stuff that matters.
Re:Jenkin developers accidentally do "git push --force" to o... by jrochkind1 on Monday November 11, 2013 @06:54PM (#6714935)
Nothing was or could have been lost permanently. The commits were all still there, it's just that none of them were in the commit history for any branches anymore. And the entire history including sufficient info to restore the state prior to the `push -f` is all there in the reflog.

It's just a pain in the butt to restore it all, especially if in the meantime people started making new commits on top.

But if someone has commit privileges to a repo, they have the ability to mess it up, I don't see any real way around that. The UI of the client side tool(s) that made it so easy to make this mistake can perhaps be blamed.

Re:Jenkin developers accidentally do "git push --force" to o... by eru on Monday November 11, 2013 @10:24PM (#6715663)
> But if someone has commit privileges to a repo, they have the ability to mess it up, I don't see any real way around that.

Force push capabilities make it even easier to mess up than just plain commit priviliges.