Answers for "git update gitignore"

5

git update gitignore

git rm -r --cached .
git add .
git commit -m "update gitignore"
Posted by: Guest on December-13-2020
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"
Posted by: Guest on July-30-2020
3

gitigore rm cache

git rm -r --cached .
Posted by: Guest on April-06-2020
9

git add gitignore

$ touch .gitignore
Posted by: Guest on June-09-2020
0

remove gitignore files

git ls-files --ignored --exclude-standard -z | xargs -0 git rm --cached
git commit -am "Remove ignored files"


// answer from: thSoft
Posted by: Guest on June-26-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language