[Python] How to have branch specific variables in GIT and python

Discussão em 'Python' iniciado por Stack, Março 4, 2025.

  1. Stack

    Stack Membro Participativo

    I have 2 different branches, master and test. Those branches are exact replicas except for the database string which is different for master and test. Everytime I merge test to master, the database string in the master gets replaced by the test database string.

    I have heard about using branch specific variables, so I don't need to worry about the database string getting changes on merge as .env variables will take care of it.

    Please let me know how do I do that.

    Continue reading...

Compartilhe esta Página