В bash
вы можете установить HISTCONTROL=ignorespace
и добавить к вашему git
коммит с пробелами.Начиная с man bash
:
HISTCONTROL
A colon-separated list of values controlling how commands are saved on the
history list. If the list of values includes ignorespace, lines which
begin with a space character are not saved in the
history list.
Возможно, вы уже установили HISTCONTROL
на нормальное значение, проверьте его:
$ echo $HISTCONTROL
ignoreboth
ignoreboth
- это сокращение для ignorespace
иignoredups
.
Кстати, вы уверены, что никто не сможет прочитать ваш ~/.gitconfig
?