Git development
 help / color / mirror / Atom feed
From: Michael J Gruber <git@drmicha.warpmail.net>
To: Bartolomeo Nicolotti <bnicolotti@siapcn.it>
Cc: git@vger.kernel.org
Subject: Re: 500Mb file erroneously commited
Date: Mon, 06 Jun 2011 09:51:10 +0200	[thread overview]
Message-ID: <4DEC86EE.1030101@drmicha.warpmail.net> (raw)
In-Reply-To: <loom.20110606T093627-918@post.gmane.org>

Bartolomeo Nicolotti venit, vidit, dixit 06.06.2011 09:43:
> Hello,
> 
> we're using CVS to store some sources, but for some big projects I'm considering
> to use git. Last week it has happened that one collegue erroneously commited one
> big file, 500Mb the file only. To avoid to have this file in the repository
> we've deleted the history file in the CVS repository, the one with ,v, this has
> been easy as each file has its own history. Would it be possible to do the same
> with git, or there's no possibility to delete a 500Mb file erroneously commited? 

Due to the way git (or hg or...) works, you would have to rewrite the
history in order to remove a file from a repo completely. The first
example in the git-filter-branch man page describes how to do this.

Michael

  reply	other threads:[~2011-06-06  7:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-06  7:43 500Mb file erroneously commited Bartolomeo Nicolotti
2011-06-06  7:51 ` Michael J Gruber [this message]
2011-06-06  7:55 ` Axel Freyn
2011-06-06  9:10   ` Matthieu Moy

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=4DEC86EE.1030101@drmicha.warpmail.net \
    --to=git@drmicha.warpmail.net \
    --cc=bnicolotti@siapcn.it \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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