Github commit message escape character "@"

When I try to capture a message containing the @ sign, I always put the user tag.

Example: In the post, I mean the @property python decorator, not the github user named property.

Is it possible to avoid this symbol and not create a link for the user?

thanks

+7
git github
source share
2 answers

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 `` .

0
source share

There is a way to do this, but it is a bit hacked. Sly was very close to his decision. Instead of pasting the code for the zero-width space, you need to insert the actual zero-width space. Here is a test that shows that it works. Also here is information about a space character of zero width.

Note. The Windows shortcut on the website does not work. Instead, it inserts ..
Note2 : Remember to thank Slai :)

+3
source share

All Articles