See if this works:
git config advice.statusHints false
Addressing your comment about whether it is possible to print some messages, but not others:
. , git. (advice_status_hints) , . git - git, .
, git .bashrc:
git() {
if [[ $1 == "status" ]];
then
command git "$@" | sed '/# (use "git push" to publish your local commits)/d'
else
command git "$@";
fi;
}
, , , git status.