$ git rm --cached relative/filepath.json --> removes the file from the gitproject also add "relative/filepath.json" to .gitignore
$ echo debug.log >> .gitignore $ git rm --cached debug.log rm 'debug.log' $ git commit -m "Start ignoring debug.log"