Accidentaly I pushed a commit including files that should have been ignored (node_modules and bower components directories).
As I was using many dependencies, the commit got pretty big and lot of data got uploaded.
I deleted those files in another commit and included a .gitignore file, however every time I clone the app all those big files are downloaded as the history of the project.
Is there any way to get rid of that? A way to definitly remove node_modules and bower components directory from my git repo?
you can rewrite git history and remove this objects from git.
Look on next link https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History