CodeIgniter Forums
What files to track in version control? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: What files to track in version control? (/showthread.php?tid=66791)



What files to track in version control? - codeguy - 12-03-2016

This is probably very basic but not so obvious to me. Every CI app has hundreds of files associated with the project - aside from the files we add such as controllers, views, models, etc. Is there a common strategy for tracking important files using a version control system such as git?

Specifically, do I just need to track my app specific controllers, views and model files, plus maybe the config, routes and assets folders?

Or maybe the whole application folder? 

What strategy do you experienced coders recommend?  Confused


RE: What files to track in version control? - albertleao - 12-03-2016

(12-03-2016, 10:43 AM)codeguy Wrote: This is probably very basic but not so obvious to me. Every CI app has hundreds of files associated with the project - aside from the files we add such as controllers, views, models, etc. Is there a common strategy for tracking important files using a version control system such as git?

Specifically, do I just need to track my app specific controllers, views and model files, plus maybe the config, routes and assets folders?

Or maybe the whole application folder? 

What strategy do you experienced coders recommend?  Confused

I would track anything that is required to make your app work.

Skip out log files or any vendor files brought in via composer or node.


RE: What files to track in version control? - codeguy - 12-04-2016

Thanks for your answer, albertleao.


RE: What files to track in version control? - codeguy - 01-03-2017

(12-03-2016, 12:31 PM)albertleao Wrote:
(12-03-2016, 10:43 AM)codeguy Wrote: This is probably very basic but not so obvious to me. Every CI app has hundreds of files associated with the project - aside from the files we add such as controllers, views, models, etc. Is there a common strategy for tracking important files using a version control system such as git?

Specifically, do I just need to track my app specific controllers, views and model files, plus maybe the config, routes and assets folders?

Or maybe the whole application folder? 

What strategy do you experienced coders recommend?  Confused

I would track anything that is required to make your app work.

Skip out log files or any vendor files brought in via composer or node.