In this article let’s discuss about How to apply gitignore after commit. Let’s go through the following methods without any delay.
git rm --cached $file
If you are facing any issues with the above approach then try the alternative that is given below. It may look similar by have a try!
Method 2 :
#First commit all changes git rm -r --cached . git add . git commit -m ".gitignore updated"
Hope the above solution works.
Realted Posts : How to save android studio home bash_profile