码迷,mamicode.com
首页 > 其他好文 > 详细

git 常用命令

时间:2017-01-04 19:55:22      阅读:127      评论:0      收藏:0      [点我收藏+]

标签:code   nbsp   out   bsp   origin   服务   pull   代码   git push   

1.git clone xxx项目git地址(eg:git@192.168.122.141:xdb-service/xdb-service.git)

git clone git@192.168.122.141:xdb-service/xdb-service.git

2.git pull 拉取项目/git pull --rebase

3.git push 提交代码到远程服务器 /git push origin 分支名

4.git branch/git branch -a 查看分支

5.git checkout 分支名  切换分支

 

git 常用命令

标签:code   nbsp   out   bsp   origin   服务   pull   代码   git push   

原文地址:http://www.cnblogs.com/lindaZ/p/6249726.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!