I pushed my local repository to GitHub. In the process of committing my code, I forgot to create a .gitignore
file. As a result, I have committed and subsequently pushed some folders and files that I didn't want on GitHub (or in my local repository, for that matter).
How can I apply .gitignore
now, so that I can remove some undesired folders and files going forward?