远程:致命:错误的用户名'@'

时间:2014-03-18 13:27:25

标签: git

在将提交从本地推送到git服务器时,得到了下面提到的响应

  git.exe push --all --progress  "origin"

    Counting objects: 7, done.
    Delta compression using up to 4 threads.
    Compressing objects: 100% (3/3), done.
    Writing objects: 100% (4/4), 362 bytes, done.
    Total 4 (delta 1), reused 0 (delta 0)

remote: FATAL: bad username '@'

    To git@10.237.218.244:gitolite-admin.git
    51174b6..3646648  master -> master

    Success (7488 ms @ 3/18/2014 6:33:59 PM)

如何解决此问题

1 个答案:

答案 0 :(得分:1)

您必须设置用户名。

$ git config --global user.name "John Doe"