Remove directory from remote repository after adding them to .gitignore
Asked 07 September, 2021
Viewed 2.1K times
  • 59
Votes

I committed and pushed some directory to github. After that, I altered the .gitignore file adding a directory that should be ignored. Everything works fine, but the (now ignored) directory stays on github.

How do I delete that directory from github and the repository history?

9 Answer