美文网首页
git:设置全局用户名和邮箱

git:设置全局用户名和邮箱

作者: Tim_Lee | 来源:发表于2017-10-13 09:57 被阅读0次

    设置以后,github 才会对提交等活动进行记录。

    设置邮箱:

    > git config --global user.email "youremail@email.com"
    

    查看确认是否设置成功。

    > git config --global user.email
    youremail@email.com
    

    设置用户名

    git config --global user.name "YourUsername"
    

    相关文章

      网友评论

          本文标题:git:设置全局用户名和邮箱

          本文链接:https://www.haomeiwen.com/subject/jooayxtx.html