Add .gitignore with same patterns as .hgignore