Re:Jenkin developers accidentally do "git push --force" to o...
by Silhouette on Monday November 11, 2013 @05:38PM
(#6714600)
Right. So if your revision control system -- your failsafe in the event of unpredicted mistakes -- is configured such that you can lose data permanently, I think it is fair to ask whether anything can be changed to improve how that tool operates. This doesn't mean you can't also ask what else might be done to avoid any unfortunate repetition of the same problem situation, of course.
[ Parent
| on HN ]
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.