git 一些常用命令

回退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 .






评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值