2

In my git repo, my config files (which are different on the features and master branch) have the skip-worktree bit on. Everything worked fine until I did a rebase on a local branch. This overwrote my local config files on my features branch.

So to I updated the config in my features branch, but when I switched branches the same changes appeared in my master too. So basically any changes to the config files in any branch changes them in all branches when I checkout.

Did I do something wrong, and how do I ensure that changes to config files do not change on checkout?

adarshdec23
  • 231
  • 2
  • 9
  • The best course of action is to not commit configuration files at all, but keep them out-of-tree with templates only in the repository. Does help? – knittl Oct 31 '21 at 10:57

0 Answers0