Let's say I have a file in the git repository:
#file.py setting1 = default1 setting2 = default2 <some code>
Now I want to make some local changes that do not return to the repo
#file.py - local change setting1 = mysetting1 setting2 = mysetting2 <some code>
Say that in the future the upstream repository will be updated, and I want to change my changes without violating my local settings. IE a git that I could run to update the file so that it is
#file.py - updated copy setting1 = mysetting1 setting2 = mysetting2 <new code>
Is there a way to do this, either with branches, or with some other git function where I do not need to put local settings in a separate file?
I saw a few more such questions, but they focus on excluding the whole file.
thanks
source share