title: How to remove files from a pushed Git commit
body: <p>While working on some files, I have created a backup file to each one, but I forgot to erase them before pushing and rebasing. I have committed multiple times since but haven't pushed it yet.</p>
  
  <p>Here were my steps:</p>
  
  <pre><code>git add -A
  git commit -m &lt;message&gt;
  
  git checkout master
  git pull upstream master
  git push
  git checkout "branch"
  git rebase master
  </code></pre>
  
  <p>My current branch doesn't have the backup files anymore. Would it be enough to just push and rebase master with my updated branch?</p>