Add a .gitignore file to ignore temporary files created by text editor and compiled sources.