title: Github - File XYZ is 126.80 MB; this exceeds GitHub's file size limit of 100.00 MB
body: <p>I have a local repository that a large file was accidentally added to. Now im almost 100 commits behind. When I try to push to GitHub it gives me an error. </p>
  
  <p>I need help doing whatever I need to do to be able to push the rest of this repository.</p>
  
  <p><em>I do not need this file and can delete it permanently</em></p>
  
  <p>(Side Note: This is a directory with IPython nodes &amp; code. I have a script auto pushing it which is why I'm almost 100 commits behind. I just noticed that it wasn't sync'd)</p>
  
  <h2>Here's what I've tried without success:</h2>
  
  <pre><code>git status
  </code></pre>
  
  <blockquote>
    <p>On branch master
    Your branch is ahead of 'origin/master' by 100 commits.<br>
          (use "git push" to publish your local commits)<br>
    nothing to commit, working directory clean</p>
  </blockquote>
  
  <pre><code>git filter-branch --index-filter 'git rm --cached --ignore-unmatch "Education/Coursera/Exploratory Data Analysis/Week1/household_power_consumption.txt"' --tag-name-filter cat -- --all
  </code></pre>
  
  <blockquote>
    <p>Rewrite d381c7d5037a6a26abb2b5cef06e57d8b86a398b (95/189)rm 'Education/Coursera/Exploratory Data Analysis/Week1/household_power_consumption.txt'<br>
    ..<br>
    Rewrite f639b57714a5d57ff37b9d4a55c1c69fc0b514a8 (176/189)rm 'Education/Coursera/Exploratory Data Analysis/Week1/household_power_consumption.txt'<br>
    Rewrite 587c8b65f19315ebeb6627a75bd703a5dbdec208 (189/189)  </p>
    
    <p>Ref 'refs/heads/master' was rewritten<br>
    WARNING: Ref 'refs/remotes/origin/master' is unchanged</p>
  </blockquote>
  
  <pre><code>git rm "Education/Coursera/Exploratory Data Analysis/Week1/household_power_consumption.txt"
  </code></pre>
  
  <blockquote>
    <p>fatal: pathspec 'Education/Coursera/Exploratory Data Analysis/Week1/household_power_consumption.txt' did not match any files</p>
  </blockquote>
  
  <pre><code>git push
  </code></pre>
  
  <blockquote>
    <p>warning: push.default is unset; its implicit value is changing in Git 2.0 from 'matching' to 'simple'. To squelch this message and maintain the current behavior after the default changes, use:</p>
    
    <p><code>git config --global push.default matching</code>  </p>
    
    <p>To squelch this message and adopt the new behavior now, use:</p>
    
    <p><code>git config --global push.default simple</code>  </p>
    
    <p>When push.default is set to 'matching', git will push local branches to the remote branches that already exist with the same name.</p>
    
    <p>In Git 2.0, Git will default to the more conservative 'simple' behavior, which only pushes the current branch to the corresponding remote branch that 'git pull' uses to update the current branch.</p>
    
    <p>See 'git help config' and search for 'push.default' for further information.<br>
    (the 'simple' mode was introduced in Git 1.7.11. Use the similar mode   'current' instead of 'simple' if you sometimes use older versions of Git)</p>
    
    <p>Counting objects: 841, done.<br>
    Delta compression using up to 2 threads.<br>
    Compressing objects: 100% (578/578), done.<br>
    Writing objects: 100% (835/835), 31.79 MiB | 3.14 MiB/s, done.<br>
    Total 835 (delta 196), reused 0 (delta 0)  </p>
    
    <p>remote: warning: File .git-rewrite/t/Education/Coursera/Exploratory Data Analysis/Week1/household_power_consumption.txt is 74.92 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB<br>
    remote: warning: File .git-rewrite/t/Education/Coursera/Exploratory Data Analysis/Week1/household_power_consumption.txt is 69.38 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB  </p>
    
    <p>remote: error: GH001: Large files detected.<br>
    remote: error: Trace: f013f5e75b4f35d07de5d2d9ef1116bd<br>
    remote: error: See <a href="http://git.io/iEPt8g" rel="noreferrer">http://git.io/iEPt8g</a> for more information.<br>
    remote: error: File .git-rewrite/t/Education/Coursera/Exploratory Data Analysis/Week1/household_power_consumption.txt is 126.80 MB; this exceeds GitHub's file size limit of 100.00 MB  </p>
    
    <p>To git@github.com:rbohac/IPython-Notebooks.git
    ! [remote rejected] master -> master (pre-receive hook declined)<br>
    error: failed to push some refs to 'git@github.com:rbohac/IPython-Notebooks.git'</p>
  </blockquote>