Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
awaisraad
· 4y ago · 0 comments
a colleague accidentally force pushed a stale branch to master and a weeks worth of work was potentially lost. That day git reflog helped and saved our jobs as we were contractors for a big Germany based client.
Comments
[–]
papito
4y ago
Always disable force pushes to trunk (if that feature is available, as it is on Github).
[–]
LgWoodenBadger
4y ago
I hope you(they) are backing up their source code as well, which would have helped you if reflog did not.