回退commit
git reflog //查看commit的历史记录
git reset --hard HEAD@{number} //回退commit到想要的版本
git colone ssh://Administrator@192.168.1.166/apply
git checkout dev
cd apply/
git checkout dev
/d/www/wwwroot/apply<dev>
提交代码
$ git add .
$ git commit -m 'txl'
$ git push origin dev
git checkout -- txl.js
当代码
git pull origin dev
新用法:
git branch notice
git checkout notice
git add .
git commit -m '2'
git checkout dev
git add .
git commit -m '2'
pull
push
1 git pull origin dev
2 git add .
3 git commit -m '2'
4 dev: no trouble => git push origin dev
5.notice : 2,3 checkout dev => pull => git merge notice => git push origin dev
6.meeting: 2,3
git ignore:
git rm -rf App/Runtime
vim .gitignore
git add .gitignore
git commit -m "ignore Runtime"
cd App/Runtime/
\ls "enter"
Data Temp
rm -rf *
cd..
1s
Common Conf Lib Modules Runtime Tpl
git status
git checkout master
1s
Common Conf Lib Modules Runtime Tpl
git checkout dev
git add .