A
A
Artem00712017-07-08 21:08:39
git
Artem0071, 2017-07-08 21:08:39

How to hide lines in git?

Getting acquainted with the git
there is a config.php file
It has uppercase constants

define('APP', 'app/');
define('MAIN', 'main/');
...
define('DB_PASS', '555555') // <- Вот как скрыть эту строку?

I would like to dump everything in the github automatically, but changing passwords all the time is not fun. How can I hide certain fields-strings in a script?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RidgeA, 2017-07-08
@Artem0071

it is customary to save such things in a separate file (".env", for example), which, of course, should not fall into git.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question