Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7419019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:59:16+00:00 2026-05-29T07:59:16+00:00

Having accidentally put a pretty large file which was not excluded by .gitignore in

  • 0

Having accidentally put a pretty large file which was not excluded by .gitignore in my working directory i committed my changes, pushed up to github then did a git push heroku up to production.

when i saw it was trying to push 100s of MB of data up to heroku, i killed the process.

I have since done a
git rm filename.extension
followed by
git add ., a new commit and git push. But when i get to git push heroku it insists on continuing to push this impossibly large data file.

how can i check what the offending file is, and how can i make git/heroku forget it was ever there so git push heroku can start working again…?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T07:59:18+00:00Added an answer on May 29, 2026 at 7:59 am

    If you did a git rm large.file, the commit introducing the large.file is still in the history of your repo.

    To make git forget about the commit, you’ll need to remove it from your repo’s history. This could be done using git rebase as described in the answers to these questions (for example):

    • How do you remove a specific revision in the git history?
    • How to remove selected commit log entries from a Git repository while keeping their changes?

    After you removed the commit from the history, you could git push -f github and then git push -f heroku.

    Note that git push -f could cause problems if someone fetched the state of your github repo since your last push. See chapter The Perils of Rebasing in the progit book for an explanation why.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working in a very large legacy C++ code base which shall remain
The problem I just accidentally committed a change to a file that was only
I have a file called build_properties.xml in my Java project, which is not a
I'm working on a project which requires us developing our own intermediate SMTP relay
Okay, so I accidentally put the wrong remote URL into one of my git
I got very used to git's way of having to touch every file you
I'm having a problem with the Worksheet tab being renamed to whatever the file
I accidentally created a new changelist with files from WORKSPACE not from DEPOT and
I have accidentally closed a Heroku console in a not-so-graceful manner. And now when
Please, I'm having this code: $('#menu ul > li:not(#menu ul.first li, #menu ul.second li)').mouseenter(function()

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.