文章摘自:https://www.cnblogs.com/chuyanfenfei/p/8035057.html $ git config --global user.name "judgecheng" $ git config --global user.name "judgecheng@email.com" 结果: gitlab同上。