Well here it is, my typical .gitignore file for every project. This doesn’t change much. Specially it is written for Yii Framework and CakePHP:
#Mac OS X
#IDEs, compiled languages etc.
Additionally in the directories ./protected/runtime and ./assets I also added a .gitignore file containing the following:
This allows both folders to be committed into my Git repository despite them being empty. Think of it as CakePHP’s !empty. Both directories will be populated during application run time.