首先将修改后的代码commit一下,然后再提交到服务器上面去
- [root@localhost P5905]# git commit -a
这里会进入到之前git设置的编辑器里面,然后就可以编辑了,保存退出以后出现下面信息
- [master 5c66c60] To support two camera choose support to ov7690 on P5905 7050 version
- 2 files changed, 15 insertions(+), 0 deletions(-)
确认一下commit进去以后的信息
- [root@localhost P5905]#
- [root@localhost P5905]# git log
- commit 5c66c608e059733c6fe03dc9dff9202cc9d243d2
- Author: LiuQi
- Date: Wed Mar 9 14:22:38 2011 +0800
-
- To support two camera choose
- support to ov7690 on P5905 7050 version
-
- 没有问题,可以push到服务器上面去了
- [root@localhost P5905]#
- [root@localhost P5905]# git push
- root@192.168.1.127's password:
- Counting objects: 27, done.
- Delta compression using up to 2 threads.
- Compressing objects: 100% (13/13), done.
- Writing objects: 100% (14/14), 1.13 KiB, done.
- Total 14 (delta 12), reused 0 (delta 0)
- To root@192.168.1.127:/root/zk/5905_7050/P5905
- 26eb589..5c66c60 master -> master
- [root@localhost P5905]#
- [root@localhost P5905]#