My use case:
I have a project where I have to add one line of code so it runs on my machine. Before committing and pushing it I have to remove this line of code again.
I often forget this so I was wondering if I could write a tool where I can "raise a flag", which prevents me to commit or to push a commit until I "remove" the flag again.
Is there a way to create some kind of lock file or set a setting so that git bash refuses my commit/push?