Windows环境下Git安装和配置


1、Git下载和安装

  • Git下载地址:https://git-scm.com/downloads ,下载对应的版本即可。

在这里插入图片描述


  • 下载下来的Git是一个可执行的.exe文件,点击,基本默认一步步往下

在这里插入图片描述

  • 选择目录

在这里插入图片描述

剩下的默认一路往下即可。



2、Git基本配置

在完成Git的安装之后,通常需要配置用户的相关信息。

  • 右键,git bash here

在这里插入图片描述

  • 配置邮箱和用户名(–global表示全局配置)
$ git config --global user.name "test"
$ git config --global user.email [email protected]

在这里插入图片描述

3、Idea配置Git

  • 菜单->settings->Version Control->Git->Path to Git executable: 设置为安装git中所安装的git.exe

在这里插入图片描述



猜你喜欢

转载自blog.csdn.net/sinat_40770656/article/details/110408172