-
Notifications
You must be signed in to change notification settings - Fork 0
Git Refresh .gitignore files
Michael Kramer edited this page Jul 15, 2020
·
1 revision
You will have to clear the existing git cache
first.
git rm -r --cached .
git rm -r --cached <file_name.ext>
Once you clear the existing cache, add/stage file/files in the current directory and commit
git add . // To add all the files
git add <file_name.ext> // To add specific file
git commit -m "Suitable Message"
This works for both adding a file that was once ignored as well as ignoring a file that was once tracked