天天看点

Git学习笔记---git安装及注册

最近,因为公司和家里经常会写代码,组会知道git管理代码不错,所以以后打算用git来管理代码。
看了廖雪峰的git学习网站,不错,借此记录学习内容。
           

我一般喜欢在windows下写代码,所以就直接下载了windows版本,https://git-for-windows.github.io 的 msysgit,然后双击exe程序一路默认安装即可(我的路径安装在E盘中,以后好管理),安装好后,进入你的安装目录,双击git-bash.exe即可出现一下命令框。

Git学习笔记---git安装及注册

然后在图片中输入以下代码(你的gitHup注册名和邮箱)。

$ git config --global user.name "Your Name"
$ git config --global user.email "[email protected]"
           

注册完成。