码迷,mamicode.com
首页 > 系统相关 > 详细

linux git

时间:2017-04-30 12:29:47      阅读:202      评论:0      收藏:0      [点我收藏+]

标签:director   file   --   put   add   无法自动   welcome   origin   linux   

Welcome to Alibaba Cloud Elastic Compute Service !

Last login: Mon Apr 24 19:17:20 2017 from 58.48.187.147
root@iZuf679rtwsq2g9p0hudt2Z:~# cd etc
-bash: cd: etc: No such file or directory
root@iZuf679rtwsq2g9p0hudt2Z:~# cd/etc
-bash: cd/etc: No such file or directory
root@iZuf679rtwsq2g9p0hudt2Z:~# cd \home\www\gz
-bash: cd: homewwwgz: No such file or directory
root@iZuf679rtwsq2g9p0hudt2Z:~# cd /home/www/gz
root@iZuf679rtwsq2g9p0hudt2Z:/home/www/gz# git reset --hard HEAD
HEAD is now at fea6c78 offer form-1,2
root@iZuf679rtwsq2g9p0hudt2Z:/home/www/gz# git status
On branch master
Your branch is up-to-date with ‘origin/master‘.
nothing to commit, working directory clean
root@iZuf679rtwsq2g9p0hudt2Z:/home/www/gz#

 


修改代码
git add, git commit
git push
如果git push失败了:

git pull
自动合并修改,如果无法自动合并就手工合并,然后git coomit
git push

 

esc

:wq

enter

linux git

标签:director   file   --   put   add   无法自动   welcome   origin   linux   

原文地址:http://www.cnblogs.com/winyh/p/6789008.html

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