Git的安装

Windows版本安装

在Windows上使用Git,可以从Git官网直接下载安装程序,(网速慢的同学请移步国内镜像),然后按默认选项安装即可。

安装完成后,在开始菜单里找到“Git”->“Git Bash”,蹦出一个类似命令行窗口的东西,就说明Git安装成功!

安装完成后: 设置你的账户和邮箱

$ git config --global user.name "Your Name"
$ git config --global user.email "email@example.com"
Mac版本安装

1、未安装homebrew,需安装homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2、安装git

brew install git

3、设置username和email(github每次commit都会记录他们)

git config --global user.name "wenbo"
git config --global user.email "1050794513@qq.com"



©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容