git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Naum Derzhi <Naum.Derzhi@halliburton.com>
To: "paul@mad-scientist.net" <paul@mad-scientist.net>,
	"git@vger.kernel.org" <git@vger.kernel.org>
Subject: RE: [EXTERNAL] Re: Removing data from repository
Date: Thu, 24 Jan 2019 15:28:42 +0000	[thread overview]
Message-ID: <7A854577E980BE4FB29FDD041B9B75E701799D1C@NP1EXMB203.corp.halliburton.com> (raw)
In-Reply-To: <9dce6a3d8ff2f10621ea81fbd9ac9964c10aff9c.camel@mad-scientist.net>

Thank you

 
 
Naum Derzhi
Chief Scientific Adviser, Physics
 
3000 N Sam Houston Pkwy E, Technology Center, Office T1241H
Houston, TX 77032

Office: +1 (281) 871 3278

Follow Halliburton: LinkedIn | Facebook | Twitter | YouTube | Blog

 

                                                                              




This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.


-----Original Message-----
From: Paul Smith <paul@mad-scientist.net> 
Sent: Thursday, January 24, 2019 9:23 AM
To: Naum Derzhi <Naum.Derzhi@halliburton.com>; git@vger.kernel.org
Subject: [EXTERNAL] Re: Removing data from repository

External Sender: Use caution with links/attachments.



On Thu, 2019-01-24 at 14:51 +0000, Naum Derzhi wrote:
> Greetings,
>
> I have this problem: years ago one of our developers committed a large 
> (Gigabytes) piece of binary data into our project repository.
> This should not have been done, but it happened. (Honest, it was not 
> me). We never needed this data in the repository.
>
> Using git rm removes these files from the working tree, but they are 
> still somewhere in the repository, so when we clone, we transfer 
> gigabytes of unneeded data.
>
> Is it possible to fix this problem?

It is possible, but it isn't pretty.  By waiting so long to try to fix it you've compounded the impacts dramatically unfortunately.  By removing that file you will in effect be rewriting the history of your repository starting with the commit that introduced the problematic file, that will be removed, all the way forward.

That means that every clone of the repository will have to be, at the very least, "hard-reset" and preferably (to avoid accidentally re- introducing the bad file) re-cloned from scratch.

As for actually removing the file, you can find information on how to do this all over the Google.  Here's some reasonable advice from
StackOverflow:


https://urldefense.proofpoint.com/v2/url?u=https-3A__stackoverflow.com_questions_2100907_how-2Dto-2Dremove-2Ddelete-2Da-2Dlarge-2Dfile-2Dfrom-2Dcommit-2Dhistory-2Din-2Dgit-2Drepository&d=DwICaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbrMXk2FZvF0UfTo&r=osDENe9k4dELyyh8ZmVzyWvVmzDFBB9Z_NHjYAXnqMg&m=dmUTLEwyrdm6hRWOzlTFqBaVv4_WJoUWDed9sG4uDQ0&s=QrNGuuWuNZQqkSksRUK9sfcG5iwVZIxmE6UZcneRxHg&e=


      reply	other threads:[~2019-01-24 15:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-24 14:51 Removing data from repository Naum Derzhi
2019-01-24 15:17 ` Jeff King
2019-01-24 15:27   ` [EXTERNAL] " Naum Derzhi
2019-01-24 15:22 ` Paul Smith
2019-01-24 15:28   ` Naum Derzhi [this message]

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

  List information: http://vger.kernel.org/majordomo-info.html

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

  git send-email \
    --in-reply-to=7A854577E980BE4FB29FDD041B9B75E701799D1C@NP1EXMB203.corp.halliburton.com \
    --to=naum.derzhi@halliburton.com \
    --cc=git@vger.kernel.org \
    --cc=paul@mad-scientist.net \
    /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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).