前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >git 向服务器中提交代码

git 向服务器中提交代码

作者头像
用户3765803
发布2019-03-05 09:59:21
6580
发布2019-03-05 09:59:21
举报

首先将修改后的代码commit一下,然后再提交到服务器上面去

  1. [root@localhost P5905]# git commit -a

这里会进入到之前git设置的编辑器里面,然后就可以编辑了,保存退出以后出现下面信息

  1. [master 5c66c60] To support two camera choose support to ov7690 on P5905 7050 version
  2. 2 files changed, 15 insertions(+), 0 deletions(-)

确认一下commit进去以后的信息

  1. [root@localhost P5905]#
  2. [root@localhost P5905]# git log
  3. commit 5c66c608e059733c6fe03dc9dff9202cc9d243d2
  4. Author: LiuQi
  5. Date: Wed Mar 9 14:22:38 2011 +0800
  6. To support two camera choose
  7. support to ov7690 on P5905 7050 version
  8. 没有问题,可以push到服务器上面去了
  9. [root@localhost P5905]#
  10. [root@localhost P5905]# git push
  11. root@192.168.1.127's password:
  12. Counting objects: 27, done.
  13. Delta compression using up to 2 threads.
  14. Compressing objects: 100% (13/13), done.
  15. Writing objects: 100% (14/14), 1.13 KiB, done.
  16. Total 14 (delta 12), reused 0 (delta 0)
  17. To root@192.168.1.127:/root/zk/5905_7050/P5905
  18. 26eb589..5c66c60 master -> master
  19. [root@localhost P5905]#
  20. [root@localhost P5905]#
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2011-03-09 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档