美文网首页
Git的安装

Git的安装

作者: 爱貌貌Manners | 来源:发表于2019-07-26 15:23 被阅读0次
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"



相关文章

网友评论

      本文标题:Git的安装

      本文链接:https://www.haomeiwen.com/subject/tqqdrctx.html