git安装

来源:互联网 发布:卖淘宝小号的网站 编辑:程序博客网 时间:2024/06/17 01:38
1、linux上安装
$ yum install git-core
或者
$ apt-get instal git-core

2、Mac上安装
安装包安装 http://code.google.com/p/git-osx-installer
或者
$ sudo port install git-core +svn +doc +bash_completion +gitweb

3、windows上安装
下载地址:https://git-for-windows.github.io/

4、初次使用需要配置用户信息,这样可以让项目中其他小伙伴知道哪些代码是你提交的。
配置
$ git config --global user.name "孙进"
$ git config --global user.email sunjin@163.com

查看配置信息
$ git config --list

这样就可以开始使用git了



0 0