Got the correct patterns to not exclude the .emacs.d directory in .gitignore, and added it, along with an initial init.el file.