Last active
April 30, 2021 13:11
-
-
Save m2web/2d79223f286b92b33ce34cc3fa88e960 to your computer and use it in GitHub Desktop.
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
# ***************************************************************** | |
# After updating the .gitignore file to ignore previously | |
# tracked file(s) by Git. However, Git is still tracking | |
# the file(s) that you added to .gitignore. Please stop the | |
# files from being tracked! :-) | |
# ***************************************************************** | |
# For a single file staging (a.k.a cache or index): | |
git rm --cached <theFileName> | |
# To remove a whole folder from staging: | |
git rm -r --cached <theFolderName> | |
# remove all files from staging | |
git rm -r --cached . | |
#add files back to be tracked not in .gitignore | |
git add . | |
git commit -m "Update to .gitignore applied" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment