1.安装git

-----------------------------开始安装-------------------------------------

  1.1更新系统

  # apt-get update

  1.2 安装git

  # apt-get install git(中间会询问y/n选择y)

  1.3配置git唯一标识(用户名和邮箱)

  # git config --global user.name "YourName"

  # git config --global user.name "YourEmail"

  1.4查看git配置

  # git config --list

-------------------------- 安装完成 --------------------------------------

 

2.搭建git仓库(创建本地仓库repository)

 

posted on 2016-02-26 11:39  詹俊鹏  阅读(240)  评论(0)    收藏  举报