Last active
January 30, 2018 11:39
-
-
Save goodviber/dc62d74363e7a5d4766b11fc69f7f626 to your computer and use it in GitHub Desktop.
gitignore
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
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" | |
To undo git rm --cached filename, use git add filename | |
Also look at BFG Repo-Cleaner. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment