Add .gitignore file.
Remove unnecessary output to make the script pipe-friendly.