.gitignore for SugarCRM Development

The .gitignore file I’m using by default for SugarCRM repos is as follows:

# Blacklist everything
*
# include .gitignore file
!.gitignore
# Whitelist custom directory and everything below it
!/custom/
!/custom/**

This means that it’s only the /custom/ folder and everything below it that’s kept in the git repo.