cmds: write .gitignore entries at the end of the file