In our main
branch we have a file that contains specific configurations.
Let's call this file .example-conf
.
When the developer creates his branch and pull requests.
He can change the content of .example-conf
file, so his pull request will execute our custom script based on these configs. Changes in file .example-conf
should be ignored on the moment of merge.
We need to prevent developers from modifying .example-conf
file in the main
branch. But that file should be there for them when they create a branch from main
.
We tried implementing a solution with .gitattributes
but that doesn't work as there are no conflicts during the merge. So as result after merge content of .example-conf
will be modified. We need it to stay same as on main
branch.
We use GitHub for version control.
How can this be done?