git linux安装

来源:互联网 发布:apache配置文件路径 编辑:程序博客网 时间:2024/06/08 18:25

一,Linux环境下检出项目到本地:

1,linux下的操作:

 

//   mkdir  test

//   cd  test/

//   git  clone  https://github.com/wwwww

//   cd test/

//   ls

//   vi README.mb

 

2,linux环境下第一次提交项目:

 

// vi  日记

 

// git  status        查看工作区的状态

 

// git add 日记    建立跟踪


git  diff

 

// git  push  推送文件到远程的仓库

  git  config  --global  push.default matching  //提交人

  git  config  --global  user.name ‘w’

 git  config   --global user.email ‘w’

 

原创粉丝点击