Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67563 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65303 invoked from network); 27 May 2013 18:42:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 May 2013 18:42:36 -0000 Authentication-Results: pb1.pair.com header.from=walterp@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=walterp@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.169 as permitted sender) X-PHP-List-Original-Sender: walterp@gmail.com X-Host-Fingerprint: 209.85.223.169 mail-ie0-f169.google.com Received: from [209.85.223.169] ([209.85.223.169:46893] helo=mail-ie0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C8/E3-44058-A19A3A15 for ; Mon, 27 May 2013 14:42:35 -0400 Received: by mail-ie0-f169.google.com with SMTP id u16so19498065iet.28 for ; Mon, 27 May 2013 11:42:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=QisOBTI1FdBGWcAQwt2sgxcGihvO/z3PDH1zD17NpJ4=; b=jeFj+go+3pKMfPSu8ZHf6RT7MgR4SDycv0PdZZnvoZjOLuJ8/c5wLm0UKkoqTzwxsQ 9eePqw6GJoA2Z2FxJakSFRRBXAHir2yAQBqoxUDtgFsFRbZjGqbTjnGet2A4p3NNyx5k Bwz53FcNOEXSfL4xwqPpeM2/c8O0sG+0C3r6X100zRgZVTq8fCfOOPGh64ILO3/0FslO v7vTd70Tv7ebifcpPEWOJpuwRYMP3wu+Ph4dhcC5ixkmt4vnck73StyV5YEhVIzWGnJA Obb+auqKg76VMcNLv+ojn8+zIBhTRT4Mn725hsIyRnJ4pdqa2zqzDj9bZLBh/FA4MKWb OR8g== MIME-Version: 1.0 X-Received: by 10.50.32.7 with SMTP id e7mr5309993igi.73.1369680151999; Mon, 27 May 2013 11:42:31 -0700 (PDT) Received: by 10.64.245.244 with HTTP; Mon, 27 May 2013 11:42:31 -0700 (PDT) Date: Mon, 27 May 2013 11:42:31 -0700 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Removing from git history From: walterp@gmail.com (Walter Parker) >From: Pierre Schmitz >To: internals@lists.php.net >Cc: >Date: Sat, 25 May 2013 05:48:07 +0200 >Subject: Re: [PHP-DEV] Re: About fileinfo test.mp3 >Am 24.05.2013 23:38, schrieb Anatol Belski: >> Hi David, >> >> On Fri, 2013-05-24 at 23:28 +0200, David Soria Parra wrote: >>> Hi Anatol, >>> >>> I saw your commit 74555e7c26b2c61bb8e67b7d6a6f4d2b8eb3a5f3 added a 4mb >>> mp3 file. Is it possible to create a much smaller mp3 that helps to >>> reproduce the same bug? The file blows up the taball file for the final >>> release, which I hope to keep as small as possible. >>> >>> Thanks in advance, >>> David >> >> yep, I'm working on that currently. That file was additionally reported >> as containing some copyrighted song. Never looked inside though :) . >> I'll fix that at least by tomorrow. >> >> Regards >> >> Anatol > >Hi, > >is there a sane way to completely remove that file from the git history? >Having a public git mirror might get me into trouble and I am probably >not the only one. > >Also: WTF? > >Greetings, > >Pierre > > Gitub has a nice write at https://help.github.com/articles/remove-sensitive-data The short sort is that to remove it from the history you need to apply 'git rm' as a filter-branch to your repo. Two items of note, anyone that has pulled will have to rebase and if you really want it removed (no direct access even with the commit's SHA1 key), the remote can't be updated with a push. It will have to deleted and replaced with a repo that was updated with the filter-branch. Also note that this may effect tagging. Walter -- The greatest dangers to liberty lurk in insidious encroachment by men of zeal, well-meaning but without understanding. -- Justice Louis D. Brandeis