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

git服务器提交代码的总结

时间:2014-09-18 20:44:14      阅读:209      评论:0      收藏:0      [点我收藏+]

标签:git   提交代码   

将更新的代码提交到git服务器上所需要的步骤:

1,git pull 

更新代码到最新

2,git add 文件名

添加要提交的文件

3,git commit  -m  "关于修改的内容的概括"

或者:git commit

在 vi 里面编辑修改的内容。

4,git log -2

查看修改的内容。

5,git  checkout  -b  mybranch 

将代码提交到本地分支。

6,git push os mybranch:refs/for/refs/heads/Android

将代码提交到远程分支,最后的一个是你要提交到的远程分支名

7,登陆你的gerrit服务器,添加代码的审核人。

git服务器提交代码的总结

标签:git   提交代码   

原文地址:http://blog.csdn.net/u014100559/article/details/39377593

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