So I have a CakePHP app, and I have several environments. I just want the gitignore to work so I don't have to reset the database.php and core.php every time I push from one to the other.
This is my .gitignore:
# User specific & automatically generated files #
#################################################
/app/tmp
/app/Config/core.php
/app/Config/database.php
/app/webroot/img/users/
/lib/Cake/Console/Templates/skel/tmp/
/plugins
/vendors
/node_modules
/build
/dist
/tags
*.mo
# IDE and editor specific files #
#################################
/nbproject
.idea
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
Thumbs.db
But doing this: Ignore files that have already been committed to a Git repository
Actually deletes all the files from the repo!
How can I make it so that I am just not regarding these files in any of my environment so they don't get carried over from one to the other?