search

Home  >  Q&A  >  body text

After reinstalling the system, git pull cannot be used. What should I do? git is installed

Git pull cannot be used after reinstalling the system, what should I do?

巴扎黑巴扎黑2852 days ago842

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