Welcome to Alibaba Cloud Elastic Compute Service !
Last login: Mon Apr 24 19:17:20 2017 from 58.48.187.147
[email protected]:~# cd etc
-bash: cd: etc: No such file or directory
[email protected]:~# cd/etc
-bash: cd/etc: No such file or directory
[email protected]:~# cd \home\www\gz
-bash: cd: homewwwgz: No such file or directory
[email protected]:~# cd /home/www/gz
[email protected]:/home/www/gz# git reset --hard HEAD
HEAD is now at fea6c78 offer form-1,2
[email protected]:/home/www/gz# git status
On branch master
Your branch is up-to-date with ‘origin/master‘.
nothing to commit, working directory clean
[email protected]:/home/www/gz#
修改代码
git add, git commit
git push
如果git push失败了:
git pull
自动合并修改,如果无法自动合并就手工合并,然后git coomit
git push
esc
:wq
enter
时间: 2024-10-09 05:29:10