search

Home  >  Q&A  >  body text

重装系统后git pull 不能用了,怎么回呢?git 已经 安装

重装系统后git pull 不能用了,怎么回呢?

巴扎黑巴扎黑2753 days ago765

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-05-02 09:39:14

    The global configuration file of git is often in the c drive (the same applies to other systems). Reinstalling the system may delete the configuration file. If name and email are not configured, git will not work properly.

    It is recommended that the subject check whether name and email are configured. Enter under git bash: git config --global --list Check whether there is the following content:

    If not, then this information is missing. Enter under git bash:

    git config --global user.name="你的名字"
    git config --global user,email="你的邮箱"

    reply
    0
  • Cancelreply