delete file in gitignore code example Example: git ignore remove git rm -r --cached . git add . git commit -m "Removing all files in .gitignore"