<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/someone-force-pushed-main-the-commits-weren-t-gone-reflog-still-had-ninety-days-enoq7avkg" -->

---
title: Someone Force-Pushed main. The Commits Weren’t Gone —...
description: A force-push to main wiped 14 commits from the visible history, causing a 47-minute release block. The commits were recoverable via git reflog in six minutes....
canonical: https://daily.dev/posts/someone-force-pushed-main-the-commits-weren-t-gone-reflog-still-had-ninety-days-enoq7avkg
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Someone Force-Pushed main. The Commits Weren’t Gone — reflog Still Had Ninety Days | daily.dev
og:description: A force-push to main wiped 14 commits from the visible history, causing a 47-minute release block. The commits were recoverable via git reflog in six minutes....
og:url: https://daily.dev/posts/someone-force-pushed-main-the-commits-weren-t-gone-reflog-still-had-ninety-days-enoq7avkg
og:image: https://api.daily.dev/og/posts/eNOQ7AVkg.png
og:image:alt: Someone Force-Pushed main. The Commits Weren’t Gone — reflog Still Had Ninety Days
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Someone Force-Pushed main. The Commits Weren’t Gone — reflog Still Had Ninety Days

**[Medium](https://daily.dev/sources/medium_js)** · 8 min read · 12 upvotes · 2 comments

## Summary

A force-push to main wiped 14 commits from the visible history, causing a 47-minute release block. The commits were recoverable via git reflog in six minutes. The post walks through the exact recovery sequence: fetching the remote reflog, identifying the last good commit hash, creating a named recovery branch, and restoring main with --force-with-lease. It also covers fallback strategies when reflog is empty (local clones, git fsck), and the guardrails added afterward: branch protection, a --force-with-lease alias, a pre-push hook blocking force to protected branches, and quarterly Git disaster drills.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.stackademic.com/someone-force-pushed-main-the-commits-werent-gone-reflog-still-had-ninety-days-38cf65ce240d>

## Community discussion

Top comments from developers on daily.dev.

**@deepjoshi\_dev** · 0 upvotes

> This is news to me thanks for sharing.

## Similar posts on daily.dev

- [I Force Pushed Over Six Hours of Commits. I Didn’t Tell Anyone.](https://daily.dev/posts/i-force-pushed-over-six-hours-of-commits-i-didn-t-tell-anyone--kskxx8fez) · JavaScript in Plain English · 18 upvotes · 5 comments
- [Some things are never truly lost - How git recovered two weeks of deleted work](https://daily.dev/posts/some-things-are-never-truly-lost---how-git-recovered-two-weeks-of-deleted-work-vh20yles6) · Daniel Saidi · 6 upvotes · 1 comments
- [Git Rebase Deleted Nothing. Your Commit Is Still in the Reflog.](https://daily.dev/posts/git-rebase-deleted-nothing-your-commit-is-still-in-the-reflog--fczn8gdo7) · Medium · 0 upvotes · 0 comments
- [Git Rebase for the Terrified](https://daily.dev/posts/git-rebase-for-the-terrified-ynroja8em) · Hacker News · 1 upvotes · 0 comments

---

Tags: [#git](https://daily.dev/tags/git)

[View this post on daily.dev](https://daily.dev/posts/someone-force-pushed-main-the-commits-weren-t-gone-reflog-still-had-ninety-days-enoq7avkg)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Someone Force-Pushed main. The Commits Weren’t Gone — reflog Still Had Ninety Days","url":"https://daily.dev/posts/someone-force-pushed-main-the-commits-weren-t-gone-reflog-still-had-ninety-days-enoq7avkg","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/someone-force-pushed-main-the-commits-weren-t-gone-reflog-still-had-ninety-days-enoq7avkg"},"datePublished":"2026-07-19T19:32:05.546Z","dateModified":"2026-07-20T06:21:34.811Z","description":"A force-push to main wiped 14 commits from the visible history, causing a 47-minute release block. The commits were recoverable via git reflog in six minutes....","image":"https://media.daily.dev/image/upload/s--ZrL_HSsR--/f_auto/v1722860399/public/Placeholder%2006","thumbnailUrl":"https://media.daily.dev/image/upload/s--ZrL_HSsR--/f_auto/v1722860399/public/Placeholder%2006","isAccessibleForFree":true,"articleSection":"Medium","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Medium","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/medium","url":"https://daily.dev/sources/medium_js"},"commentCount":2,"discussionUrl":"https://daily.dev/posts/someone-force-pushed-main-the-commits-weren-t-gone-reflog-still-had-ninety-days-enoq7avkg","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":12},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"keywords":"git","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Medium","item":"https://daily.dev/sources/medium_js"},{"@type":"ListItem","position":3,"name":"Someone Force-Pushed main. The Commits Weren’t Gone — reflog Still Had Ninety Days"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/someone-force-pushed-main-the-commits-weren-t-gone-reflog-still-had-ninety-days-enoq7avkg","comment":[{"@type":"Comment","text":"This is news to me thanks for sharing.","datePublished":"2026-07-23T14:24:21.251Z","url":"https://daily.dev/posts/eNOQ7AVkg#c-S2GaUyrgh","author":{"@type":"Person","name":"Deep Joshi","url":"https://daily.dev/deepjoshi_dev","image":"https://media.daily.dev/image/upload/s--TdY8j8Aa--/f_auto/v1776506972/avatars/avatar_aSUkzUQS97QJpQRxKMe49?_a=BAMAMiWQ0"}}]}
```

