Add .gitignore (as a concept and to prevent more tempfiles)

PR to add `.gitignore` both as a suggested concept for the cheatsheet as well as a simple one to try to prevent d26bbd5ba6bfcc7ee41292127e7076c7b7f12563 from happening again.