Git references

git rm --cached file
  • Remove files from all the repo history
git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch filename' HEAD
  • force a push
git push origin master --force
comments powered by Disqus