Sometimes we accidentally stage and commit a file or folder that we don't mean to. In order to revert this, we can revert that commit. But if we've already done a bunch of subsequent work and commits, this might be a bit painful. An alternative is to just tell git to remove that file/folder from it's cache, so that it's no longer tracking it.
- Create a .gitignore file in the git repo if you haven't already.
touch .gitignore