git add single file in git ignore code example Example: how to add filer to git ignore go to the gitignore file, add the name of the file to ignore