Sample Gitignore File This uses a single repo for all custom code on a website – typically a theme and a core functionality plugin. I initialize git in the top level directory along with this .gitignore file: