Adds git ignore file with ignore *.swp.