From: Thomas Manson <dev.mansonthomas@gmail.com>
To: "Magnus Bäck" <baeck@google.com>
Cc: git@vger.kernel.org
Subject: Re: Selectively commit/publish files to GIT
Date: Sat, 9 Nov 2013 00:01:31 +0100 [thread overview]
Message-ID: <CA+PenvHDUSBUBAQB3Lxoh7sTVfq_s=D2n2FqxnEu1_uUSvOYrw@mail.gmail.com> (raw)
In-Reply-To: <CA+PenvG7CnkvN-XZE-uYBh42Yyqq23G5fOFRNhCU83m3V5f8sQ@mail.gmail.com>
Thanks Magnus, it did solve my issue.
I've noticed by the way that i've accidentally commited the whole .bzr
directory (that hold all my commit in Bazaar style).
I've deleted this folder as well using -r
git filter-branch --force --index-filter 'git rm -r --cached
--ignore-unmatch .bzr' --prune-empty --tag-name-filter cat -- --all
for reference, an example of working run :
Thomass-MacBook-Pro:crf-rdp tmanson$ git filter-branch --force
--index-filter 'git rm --cached --ignore-unmatch
Ressources/dwr/dwr-3.0.0.110.dev-src.zip' --prune-empty
--tag-name-filter cat -- --all
Rewrite 58952de4e10bc1df2f8c324e94d249a0366f7512 (65/158)rm
'Ressources/dwr/dwr-3.0.0.110.dev-src.zip'
Rewrite e661d08f1c33d7bd53e2c2231a3296b2ade5a2dd (66/158)rm
'Ressources/dwr/dwr-3.0.0.110.dev-src.zip'
Rewrite 8ff3f3f9ffb901b7cdc1dba220a121bab0698121 (67/158)rm
'Ressources/dwr/dwr-3.0.0.110.dev-src.zip'
Rewrite cfec6341565c35c410f248e5861543ac01b84f40 (158/158)
Ref 'refs/heads/master' was rewritten
Ref 'refs/tags/version-0-1_20081120' was rewritten
Ref 'refs/tags/version-0-5-1_20120512' was rewritten
On Fri, Nov 8, 2013 at 11:51 PM, Thomas Manson
<dev.mansonthomas@gmail.com> wrote:
> Hi Magnus,
>
> thanks for pointing that out. I must have overlooked the webpage,
> when I saw that I thought it was some kind of alias that designated
> files greater than a specific files (server side configurated as the
> 100MB limit)
>
> I'll try again ;)
>
> Thomas.
>
> On Fri, Nov 8, 2013 at 3:13 PM, Magnus Bäck <baeck@google.com> wrote:
>> On Friday, November 08, 2013 at 05:52 EST,
>> Thomas Manson <dev.mansonthomas@gmail.com> wrote:
>>
>> [...]
>>
>>> How can I search git history for big files and remove them, or mark
>>> them to be not published ?
>>>
>>> I've tryed this solution found on the link in the error:
>>>
>>> git filter-branch --force --index-filter 'git rm --cached
>>> --ignore-unmatch giant_file' --prune-empty --tag-name-filter cat --
>>> --all
>>> git commit --amend -CHEAD
>>
>> [...]
>>
>>> here is the error I have using the GitHub application on Mac :
>>> (after that I intend to use Eclipse)
>>>
>>> File Ressources/dwr/dwr-3.0.0.110.dev-src.zip is 67.69 MB; this is
>>> larger than GitHub's recommended maximum file size of 50 MB
>>> GH001: Large files detected.
>>> Trace: 8f0259b29260f0c4d7ae4d4ae70e0306
>>> See http://git.io/iEPt8g for more information.
>>> File .bzr/repository/packs/a7bcd6ba235114ab88c80fe8a97adcfa.pack is
>>> 178.76 MB; this exceeds GitHub's file size limit of 100 MB
>>
>> Did you actually replace the 'giant_file' placeholder with the path to
>> *your* giant file? The error message indicates that you didn't, or that
>> something else went wrong during the filtering.
>>
>> You can use 'git log' to look for commits touching particular pathnames,
>> making it easy to verify that a file has been eradicated.
>>
>> git log --all -- path/to/big-honking-file.zip
>>
>> --
>> Magnus Bäck
>> baeck@google.com
next prev parent reply other threads:[~2013-11-08 23:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-08 10:52 Selectively commit/publish files to GIT Thomas Manson
2013-11-08 14:13 ` Magnus Bäck
2013-11-08 22:51 ` Thomas Manson
2013-11-08 23:01 ` Thomas Manson [this message]
2013-11-08 23:50 ` Keshav Kini
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='CA+PenvHDUSBUBAQB3Lxoh7sTVfq_s=D2n2FqxnEu1_uUSvOYrw@mail.gmail.com' \
--to=dev.mansonthomas@gmail.com \
--cc=baeck@google.com \
--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;
as well as URLs for NNTP newsgroup(s).