My full name is a bit long and contains a non-ascii character ã
. I was wondering if I should use it in git config --global user.name
or just keep it short (and what implications this decision would bring along).
In other words, are there any problems with using my full name (in terms of its length), along with the non-ascii character in it?
git config --global user.name "Hugo Leonardo Leão Mota"
As mentioned in this thread, utf8 characters will work fine with a recent enough Git (since git 1.7.10).
After that, it is up to the tol you are using to be able to display that string correctly.
For instance, Qt Creator had to include a patch to display the author in UTF-8 encoding.
Git, and tools that use Git, should support full-length names with Unicode characters. Although you may run into bugs with some tools, that's no reason to compromise how you sign your work.
A good way to see what's generally acceptable is to look at an existing project. In Git itself, for example:
git log --pretty=format:%an | sort -u | less
Specifically, checking for developers with a name longer than yours:
git log --pretty=format:%an | sort -u | egrep '.{25}'
shows seventeen longer names.
I think it depends on your system. Sometimes this can be an issue, but it won't break anything - just display a funky symbol instead of the ã
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With