Skip to content

Instantly share code, notes, and snippets.

@SergeyLitvin
Created December 18, 2020 08:05
Show Gist options
  • Save SergeyLitvin/7205db90ab23d54becc8e5c145f37e2b to your computer and use it in GitHub Desktop.
Save SergeyLitvin/7205db90ab23d54becc8e5c145f37e2b to your computer and use it in GitHub Desktop.
If .gitignore file not ignoring
# rm all files
git rm -r --cached .
# add all files as per new .gitignore
git add .
# now, commit for new .gitignore to apply
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