diff --git a/.gitignore b/.gitignore
index 21b165de128afa6aaff2580dc30fe3e467f74363..daa97481b1f9bdff4ece76b28b1ac63fa0804c13 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,9 +1,15 @@
+*~
+*.bak
 *.o
 .deps
 .libs
 Makefile
 Makefile.in
 
+core
+.gdb_history
+.gdbinit
+
 /ABOUT-NLS
 /INSTALL
 /aclocal.m4
diff --git a/ChangeLog b/ChangeLog
index 0b5ce5deea2fb87fa96306ca4d6a1240f1e38256..83413cc748b04224ca5551229e1bae0ea1cd504b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 	* src/Makefile.am - Rename 'INCLUDES' to 'AM_CPPFLAGS', since
 	Automake changed the naming of these a while ago, and at least
 	version 1.13 now starts warning about it.
+	* .gitignore - Ignore generated files (and bak files).
 
 2014-02-25  Benno Schulenberg  <bensberg@justemail.net>
 	* src/files.c (write_lockfile, do_lockfile) - Fix a typo reported