Git log shows strange author name

3347 views git
6

In git log I can see the following:

Author: = <=>

Gilab shows correct name (the same as set with git config --local user.name)

How to fix that behaviour?

P.S. Git 2.19.1 (Win x64)

UPDATE:

When I tried to reset name hierarchy in system/global/local configs of repo it says:

---------------------------
TortoiseGit
---------------------------
Saving config failed (key: "user.name", value: "=").
libgit2 returned: cannot delete multivar with a single delete
---------------------------
OK   
---------------------------

Looks like some git bug.

answered question

I can only guess here that <=> is the actual author recorded in the commit, and that Gitlab is someone interpreting this as something else.

1 Answer

3

The author is the person who originally wrote the code. The committer, on the other hand, is assumed to be the person who committed the code on behalf of the original author. This is important in Git because Git allows you to rewrite history, or apply patches on behalf of another person.

Try using:

git commit --author="John Doe <john@doe.com>"

posted this

Have an answer?

JD

Please login first before posting an answer.