I would like to leave out a few lines of my python script from each commit that I do, for example this line:
DEBUG_OFFSET = 600
as I change this value every time, depending on from which frame I want to start a video, and I change this value every time, so I don't changes on values like this to be tracked, only on the rest of the code.
Is such a thing possible?
I know that is possible to use something like git add --patch like on this topic:
Commit only part of a file in Git
but this is very time consuming to do every time that I make a new commit, so I was thinking of something done automatically, more like adding just a portion of a file to the .gitignore, or something like this.
Any recommendation please :) ?
Many thanks for your help!