Jnnngs
Home
About
 Admin
  ~1 minute

Removing a file from previous commits and rewriting the history of your repository.

To altogether remove a file that has been previously committed, follow these steps:-

sudo apt install git-filter-repo

git filter-repo --path output.html --invert-paths

git push origin --force --all
git push origin --force --tags