public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: Tim Tassonis <stuff@decentral•ch>
To: git@vger•kernel.org
Subject: Erase a commit from a git repository
Date: Sat, 18 Jan 2025 21:50:31 +0100	[thread overview]
Message-ID: <db7ea8df-2f37-47b9-828b-67b8d3068232@decentral.ch> (raw)

Hi all

Sorry if this is the wrong list, I have a question regarding a faulty 
commit that costs me quite a lot of diskspace.

I accidentally committed an pushed one gigabyte of firmware blobs into 
one of my git repositories, and noticed that too late, e.g. it was 
already on master and newer commits had occurred.

To my knowledge, there is no easy way to remove a commit out of an 
existing repository.

But I assume that there is a way around this: As one can easily migrate 
an svn repository to git with all history included, there surely is also 
a way to "migrate" a git repository to another git repository in the 
same way and then just leave that commit out.

As this sounds like quite a lot of manual work, I wondered if there is 
an automated process for this?

Bye
Tim



             reply	other threads:[~2025-01-18 21:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-18 20:50 Tim Tassonis [this message]
2025-01-19 11:21 ` Erase a commit from a git repository Reto
2025-01-21 17:30 ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=db7ea8df-2f37-47b9-828b-67b8d3068232@decentral.ch \
    --to=stuff@decentral$(echo .)ch \
    --cc=git@vger$(echo .)kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox