We have a WordPress install that has a different config file for Live, Test, Dev. I understand how to get Git to ignore the wp-config.php
file, but I want a different WP-config file in each of the branches. So that when a developer switches to Dev, it will use the database settings for Dev.
My process, is:
put live site into master.
add
.gitgnore
commit
create new Dev Branch
Following this procedure, it means that I can no longer update the Dev branch with the Dev Config Details for other users to use.
Can anyone advise on how to do this please?