we are a group of developers working on the same set of files. I want to make sure that no one does a git commit -a -m or git commit -am
The developers including me have this bad habbit of git commit -am/ -a -m and we have a lot of conf files specific to the machine that get committed everytime. I could ask us all to use –assume-unchanged but I want to make the developers not be able to use -a flag at all
Can I hack somehow to achieve this.?
I would recommend you to solve this problem differently:
When you insist on disabling the -a flag: well, git is open source. Finding and disabling the code which reads the -a command line parameter and recompiling shouldn’t be that hard. But that would mean you would have to do it again whenever a new version of git is released, so I would really advise against that.