zoukankan      html  css  js  c++  java
  • fatal: unable to auto-detect email address (got 'tim@newton.(none)')的解决方法

    问题描述:

    使用git commit -m "wrote a readme file",就遇到了这个问题
    ** 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.


    fatal: unable to auto-detect email address (got 'tim@newton.(none)')

    解决办法:

    找到工程目录的.git文件夹,打开之后找到config文件,在最后边添加如下信息:

    [user]
    email=your email
    name=your name

    注:你可能会找不到工程目录下的.git文件,那是因为这个目录默认是隐藏的,我们将它显示就阔以了。

  • 相关阅读:
    设计模式
    C++下char/string跟int型转换比较
    function
    流程控制
    运算符
    type
    language
    phpbasic
    html标签集合
    课题六
  • 原文地址:https://www.cnblogs.com/Terrypython/p/10656499.html
Copyright © 2011-2022 走看看