[Coldbox 5.3.0] gitignore file

I was recently cloning my CFML code repository from Bitbucket to my new local machine. I noticed that some files such as “box.json” and “cfconfig.json” were not listed in gitignore and came back, as a result, in my new development folder when my remote repository was restored. When I made a fresh install of Coldbox system and binaries via CommandBox 4.5 into my new development folder, the old box.json was not overwritten and in fact conflicted with the new Coldbox install.

Here is my gitignore file. Should I include box.json to avoid this problem in the future? What about CFconfig.json?

General Ignores + IDE

.DS_Store
settings.xml
WEB-INF

logs

logs/.

NPM, Bower, ETC

*/node_modules/
*/bower_components/

Ignored Dependencies

coldbox/*
testbox/*
modules/*
/apidocs/

You typically would not ignore box.json nor cfconfig.json so I’m not sure what your issue was. If you were cloning a repo, you should have done that into a new folder. If you already had a repo cloned (with a box.json in it) then I don’t understand what you did that tried to create a new one. installing ColdBox wouldn’t create a new box.json in the root and there’s no reason you would re-create the coldbox app template on top of an existing app.