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

工作中git 操作汇总

时间:2014-10-13 23:41:17      阅读:189      评论:0      收藏:0      [点我收藏+]

标签:git   工作   branch   

1. git branch -l  查看本地branch

2. git reset --hard 回滚所有改动

3. git status  查看本地改动

4. git pull 更新代码

5. git commit -a  提交代码

6. git push 提交到服务器

7. git fetch origin xxxxxx  把服务器拉下某个branch

8. git checkout xxxxx  将xxxxx设为工作目录

工作中git 操作汇总

标签:git   工作   branch   

原文地址:http://blog.csdn.net/lianchen/article/details/40051853

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