您的位置:首页 > 其它

Git学习 -- Git 安装

2016-05-12 23:52 288 查看
Windows版本安装:

https://git-scm.com/download/win下载最新的版本

downloading the latest (2.8.2) 64-bit versionof Git for Windows. This is the most recent maintained
build. It wasreleased 5 days ago, on 2016-05-03.























启动Git Bash后,输入git –version后看到git 的版本,证明git 安装成功。



在正式使用Git前,需要设置一下Git的配置变量:

配置Git当前的用户名和邮件地址,这将在你提交版本库时用到:

git config –global user.name githubusername

git config –global user.email githubuseremail

git config –list 查看配置信息



查看特定的配置可以用类似一下命令:

$ git config user.name

hp

到此为止git安装成功。

Linux安装(Ubuntu 14.04.1):

sudo apt-get install git

配置和window一样。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: