Git使用

1. 安装Git 

  • git是本地客户端管理代码的一个工具,下载地址:https://git-scm.com/download/win
  • 安装完成后,在文件地址栏输入cmd,验证git是否安装成

2. 把大神的代码clone到本地,使用指令:Git clone XXX

 

3. Git status查看状态

 

4.更新代码

>git add *

5.接着输入git commit -m "更新说明“,commit只是提交到缓存区域

>git commit -m "更新说明“

6.如果是多人同时开发维护代码,得先git pull ,拉取当前分支最新代码

>git pull

7.最后git push origin master,最后一步才是push到远程的master分支上

 

FAQ:Git Bash Gui要进入某个目录下

cd e:/

 

posted @ 2018-04-20 11:23  Linazhu  阅读(142)  评论(0编辑  收藏  举报