Potentially bad indentation. You may have used tabs when you configured Git to prefer spaces, or vice versa.
Check git config core.whitespace ; it may contain tab-in-indent , space-before-tab or indent-with-non-tab . You should change it according to your preferences, if this is really not a mistake.
source share