title: Removing a folder from cloned git Repo is not deleting folders from remote repository
body: <p>I am a newbie to git. I have read many write-up about cleaning git Repo before asking my question on this forum.The suggested solutions on this site have not worked for me, the deleted directory still exist in remote repository. After a completion of git repo cleanup steps, I still see the deleted folder(download/1508) when I access git repo using the URL (<a href="https://hostname/test/FPCNAV_TEST_DATA" rel="nofollow">https://hostname/test/FPCNAV_TEST_DATA</a>).</p>
  
  <p>The goal is to remove aged folder from remote git repository and free-up space. </p>
  
  <p>Also, please explain me what "refs/original" is for in command string "git for-each-ref --format='%(refname)' refs/original". Is this suppose to be a pattern  name for a folder in my local .git directory or what? Thanks.</p>
  
  <p>Here are the commands that I run and their condensed output.  Please help.</p>
  
  <pre><code>$ /home/john&gt;git clone git@hostname:XYZD/FPCNAV_TEST_DATA
  Initialized empty Git repository in /home/john/FPCNAV_TEST_DATA/.git/
  ...
  
  $ find .git/refs -type f    &lt;&lt;&lt;--- Has nothing to do with Repo cleanup
  .git/refs/heads/master
  .git/refs/remotes/origin/HEAD
  
  $ git filter-branch --force --index-filter 'git rm --cached 
        --ignore-unmatch download/1508' --prune-empty --tag-name-filter cat -- --all
  
  Rewrite 04f4ba443b1f939a05592c5af174456b7076fa0b (2/4)
  ...
  Rewrite 33c7db2e753af4ef8ae392274ca9f09af5c928ad (3/4)
  ..
  Rewrite 1019e38ffc7b1739d7f4c4c94cd68884a12c5e54 (4/4)
  ...
  WARNING: Ref 'refs/heads/master' is unchanged
  WARNING: Ref 'refs/remotes/origin/master' is unchanged
  WARNING: Ref 'refs/remotes/origin/master' is unchanged
  
  $for ref in $(git for-each-ref --format='%(refname)' refs/original); 
           do git update-ref -d $ref; done
  
  $git push origin master --force
  Enter passphrase for key '/home/john/.ssh/id_rsa':
  Everything up-to-date
  
  $git reflog expire --expire=now --all
  
  $git gc --prune=now
  
  Counting objects: 28, done.
  Delta compression using up to 8 threads.
  Compressing objects: 100% (22/22), done.
  Writing objects: 100% (28/28), done.
  Total 28 (delta 1), reused 28 (delta 1)
  
  $git push origin --force --all
  Enter passphrase for key '/home/john/.ssh/id_rsa':
  Everything up-to-date
  
  $git push origin --force --tags
  Enter passphrase for key '/home/john/.ssh/id_rsa':
  Everything up-to-date
  </code></pre>