I am working with an application where I need to change a string to point to a local URL rather than the production URL. Occasionally, I forget the change and run git commit --all
, which makes for a kind of cluttered git history.
Is there a way to exclude a certain change from all git add
s? I am aware of git update-index --assume-unchanged
, but since work is being done in the same file as the string, this wouldn't work.
Would my best option be to move the string out to some sort of "variables" or "environment" file and run the aforementioned command on it?
Thank you!