Is it possible to use a long name without ascii to configure user.name git?

My full name is a little longer and contains the non-ascii Γ£ character. I was wondering if I should use it in git config --global user.name or just keep it short (and what consequences this solution will bring).

In other words, are there any problems using my full name (along its length) along with the non-ascii character in it?

 git config --global user.name "Hugo Leonardo LeΓ£o Mota" 
+6
source share
3 answers

As mentioned in this thread , utf8 characters will work fine with fairly recent Git ( with Git 1.7.10 ).

After that, it depends on what you use to be able to correctly display this line.
For example, Qt Creator enable a patch to display the author in UTF-8 encoding.

+5
source

Git, and tools that use Git must support full-sized names with Unicode characters. Although you may encounter errors with some tools, there is no reason to compromise how you sign your work.

A good way to see what is generally acceptable is to look at an existing project. In Git itself, for example:

 git log --pretty=format:%an | sort -u | less 

In particular, a check for developers with a name longer than yours:

 git log --pretty=format:%an | sort -u | egrep '.{25}' 

shows seventeen longer names.

+2
source

I think it depends on your system. Sometimes this can be a problem, but it won't break anything - just show the funky symbol instead of Γ£ .

+1
source

Source: https://habr.com/ru/post/972512/


All Articles