Using GIT to manage develop enviroment -


on program developing using version control. however, have development mode , live mode, changed variable within program.

is possible branch off of base development branch holds variable change, when have modified program push new commits master without pushing original changes switching dev mode?

master --------master changes, not dev base variable change |-dev base     ^    |-changes----| 

don't keep configuration related environment under git control.

in simple case can 1 variable, set of parameters, such database name / user / password, external api credentials , on. don't store your passwords , credentials plain text in repository, right?

two common ways handle are:

1) add configuration file in .gitignore. in repository can have configuration file example, easy setup new environment (just copy example , modify according local environment).

2) keep variable parameters environment variables.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -