Skip to content

Instantly share code, notes, and snippets.

@Nikita-schetko
Last active October 24, 2017 11:33
Show Gist options
  • Save Nikita-schetko/b9c834de48c51f624250283737ba284a to your computer and use it in GitHub Desktop.
Save Nikita-schetko/b9c834de48c51f624250283737ba284a to your computer and use it in GitHub Desktop.
https://stackoverflow.com/questions/1139762/ignore-files-that-have-already-been-committed-to-a-git-repository
First commit any outstanding code changes, and then, run this command:
git rm -r --cached .
This removes any changed files from the index(staging area), then just run:
git add .
Commit it:
git commit -m ".gitignore is now working"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment