美文网首页
在使用git commit 命令中出现 plesase tell

在使用git commit 命令中出现 plesase tell

作者: Long_Dark | 来源:发表于2020-03-13 21:18 被阅读0次

    开心跟着视频学git的基本命令行操作中,一切操作无误。当执行git commit -am "add"时出现错误

    错误如下

    
    $ git commit -am "add"
    
    *** Please tell me who you are.
    
    Run
    
      git config --global user.email "you@example.com"
    
      git config --global user.name "Your Name"
    
    to set your account's default identity.
    
    Omit --global to set the identity only in this repository.
    
    

    emmmm,好嘛,一堆英文,不过难不倒,GOOGLE翻译打开,一个单词一个单词查意思

    原来是git没有配置,无法辨认我们是谁,需要设置一个邮箱和用户名。

    直接在git-bash上按照提示进行操作

    
    git config --global user.email "you@example.com(你的邮箱地址)"
    
     git config --global user.name "Your Name(你的名字)"
    
    

    设置完以后就可以了(不要像我我中间手残误写错几次单词,尴尬,哈哈)

    相关文章

      网友评论

          本文标题:在使用git commit 命令中出现 plesase tell

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