refresh gitignore code example
Example 1: git update gitignore
git rm -r --cached .
git add .
git commit -m "update gitignore"
Example 2: reinit gitignore
# rm all files
git rm -r --cached .
# add all files as per new .gitignore
git add .
# now, commit for new .gitignore to apply
git commit -m ".gitignore is now working"
Example 3: what to add to gitignore
Look at this awesome site!
https://www.toptal.com/developers/gitignore
Generates a gitignore for you, based on the technologies you're using