git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Erase a commit from a git repository
@ 2025-01-18 20:50 Tim Tassonis
  2025-01-19 11:21 ` Reto
  2025-01-21 17:30 ` Junio C Hamano
  0 siblings, 2 replies; 3+ messages in thread
From: Tim Tassonis @ 2025-01-18 20:50 UTC (permalink / raw)
  To: git

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Erase a commit from a git repository
  2025-01-18 20:50 Erase a commit from a git repository Tim Tassonis
@ 2025-01-19 11:21 ` Reto
  2025-01-21 17:30 ` Junio C Hamano
  1 sibling, 0 replies; 3+ messages in thread
From: Reto @ 2025-01-19 11:21 UTC (permalink / raw)
  To: Tim Tassonis; +Cc: git

On Sat, Jan 18, 2025 at 09:50:31PM +0100, Tim Tassonis wrote:
> As this sounds like quite a lot of manual work, I wondered if there is an
> automated process for this?

Sure: https://github.com/newren/git-filter-repo

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Erase a commit from a git repository
  2025-01-18 20:50 Erase a commit from a git repository Tim Tassonis
  2025-01-19 11:21 ` Reto
@ 2025-01-21 17:30 ` Junio C Hamano
  1 sibling, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2025-01-21 17:30 UTC (permalink / raw)
  To: Tim Tassonis; +Cc: git

Tim Tassonis <stuff@decentral.ch> writes:

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


https://github.com/newren/git-filter-repo perhaps?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-01-21 17:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-18 20:50 Erase a commit from a git repository Tim Tassonis
2025-01-19 11:21 ` Reto
2025-01-21 17:30 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).