Last active
January 2, 2021 02:37
-
-
Save mynameispj/10143204 to your computer and use it in GitHub Desktop.
Git Ignore SASS cache files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ignore docs files | |
styles/.sass-cache | |
styles/.sass-cache/* | |
# Not working? | |
# Try: http://stackoverflow.com/questions/11451535/gitignore-not-working | |
# Try: http://stackoverflow.com/questions/1139762/gitignore-file-not-ignoring |
For people who don't want to copy the link to the browser's address
To untrack a single file that has already been added/initialized to your repository, i.e., stop tracking the file but not delete it from your system use: git rm --cached filename
To untrack every file that is now in your .gitignore:
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"
Worked like a charm, thank you for this!
Thanks :)
Thank you @tucq88 for saving us 2 clicks! ;)
Thx
Did the trick for me. Thanks!
like a charm
Thanks a bunch.
Thanks 👍
thanks!
thanks!
Thanks! Worked perfectly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Was just googling this, thanks.