As far as I know, there is no way to avoid this.
Even if you try to use the escape sequence \@ or wrap the contents in a code tag `` , it will still display as @mention .
Here are two tests I tried:
$ git commit --allow-empty -m 'This is a \@test' $ git commit --allow-empty -m 'This is a `@test`'
I also tried to use a longer commit message and put the mention in a longer description. Once again, he did not escape this, neither with \ nor with `` .
Simone carletti
source share