In our git
repository there is, say, settings.ini
that contains a bunch of configuration data. When I test our program locally, the program automatically changes some values in the file such as local directory paths or IP address, etc, which are of no interest to anyone upstream, but of course the owner of the settings module might add new settings that I need to download.
Currently, we use the Gitflow pattern, so I work on a feature, but then when I try to do git flow feature finish my_feature
I get an error:
Fatal: Working tree contains unstaged changes. Aborting.
Of course, git checkout -- settings.ini
or git stash
gets me around this, but is there a way to mark a file as "ignore local changes" so I can stop getting the error and keep my changes?