'Is there a way to synchronize a file across all branches?

I am trying store my dotfiles on GitHub using a bare repository. The thing is, that I want to create different branches for different desktop styles but if I had to change a value in a config, which does not change the style (for example vim plugins or the .bashrc, I would have to go through all branches and change the value everywhere.

Is there a good way to mark files to be the same on all branches?



Solution 1:[1]

There is no way to synchronize files across all branches. Other people have already commented that it doesn't work but there was no official answer until now.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Trqhxrd