Delete the first buffer only if it is empty.

Add .gitignore.