<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.0">Jekyll</generator><link href="https://henrylao.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://henrylao.github.io/" rel="alternate" type="text/html" /><updated>2021-02-15T19:32:20+00:00</updated><id>https://henrylao.github.io/feed.xml</id><title type="html">Henry Lao</title><subtitle>Budding Software Developer experienced in Python, Java and C++</subtitle><entry><title type="html">git: File Too Large</title><link href="https://henrylao.github.io/test/" rel="alternate" type="text/html" title="git: File Too Large" /><published>2020-01-16T00:00:00+00:00</published><updated>2020-01-16T00:00:00+00:00</updated><id>https://henrylao.github.io/test</id><content type="html" xml:base="https://henrylao.github.io/test/">&lt;p&gt;Oops! I accidentally added a large file to a commit and pushed it to the git repository.&lt;/p&gt;

&lt;p&gt;The problem:&lt;/p&gt;
&lt;blockquote&gt;
  &lt;p&gt;remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.&amp;lt;/br&amp;gt;
remote: error: Trace: ad0eb9492f0f96aa51be007d0d08eeb2d5498d7269c0db67ab2b866f7e404bda&amp;lt;/br&amp;gt;
remote: error: See http://git.io/iEPt8g for more information.&amp;lt;/br&amp;gt;
remote: error: File src/kaggle_team_project/pickle/stack_gen.pickle is 107.40 MB; this exceeds GitHub’s file size limit of 100.00 MB&amp;lt;/br&amp;gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The solution:&lt;/p&gt;
&lt;blockquote&gt;
  &lt;p&gt;git filter-branch –tree-filter ‘rm -rf path/to/large/file’ HEAD  &amp;lt;/br&amp;gt;
git push&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Another painful lesson learned from an hour of searching for a solution.&lt;/p&gt;</content><author><name></name></author><summary type="html">Oops! I accidentally added a large file to a commit and pushed it to the git repository.</summary></entry></feed>