title: laravel.log pre-receive hook declined
body: <p>Before I am slammed there are several Questions regarding this, however nothing has resolved it.
  The Remote repo DOES NOT have a file at storage/logs/laravel.log
  I have wiped the local one with:</p>
  
  <pre><code>&gt;storage/logs/laravel.log
  </code></pre>
  
  <p>its in .gitignore with:</p>
  
  <pre><code>/storage/logs/
  </code></pre>
  
  <p>I have also run:</p>
  
  <pre><code>git rm --cached storage/logs/laravel.log
  git add -A
  git commit -m "update"
  git push
  git reset --soft HEAD^
  git reset HEAD storage/logs/laravel.log
  git commit -c ORIG_HEAD
  git add -A
  git commit -m update
  git push
  </code></pre>
  
  <p>and still get:</p>
  
  <pre><code>remote: error: File storage/logs/laravel.log is 127.11 MB; this exceeds GitHub's file size limit of 100.00 MB
  
   ! [remote rejected] master -&gt; master (pre-receive hook declined)
  </code></pre>
  
  <p>What is going on here ?
  Can somebody give a definitive answer and resolution as to why git is erroring on a file that should not even be part of the repo.</p>
  
  <p>EDIT:
  This question has been closed down and referred to an answer which either advertises third party software (the question is regarding git only and not java solutions). I have also shown that I have used the examples from that link without success.
  Further I finally posted a solution that worked for me but the moderator has seen fit to simply remove my solution without justification. I thought a moderator had to give specific reasons for actions. As already stated the 'git only' solutions have not worked up until the one I stumbled across - which is now removed.
  When did Stackoverflow start REMOVING solutions without explaination ?</p>
  
  <p>SHAME</p>