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上安装
4、初次使用需要配置用户信息,这样可以让项目中其他小伙伴知道哪些代码是你提交的。
配置
$ git config --global user.name "孙进"
$ git config --global user.email sunjin@163.com
查看配置信息
$ git config --list
这样就可以开始使用git了