repo 常用命令等

repo

通过 TAG 回退项目


  • 通过 TAG 可以回退整个项目的所有工程到某天的时间点。
    (1)SCM在每天编译版本,都会打上 TAG, 位于:

项目/.repo/manifest/tag目录/具体某天.xml
(2)在项目目录下指向对应的 TAG:
repo init -u ssh://xxx.xxx.xxx.xxx:xxx/XXX/manifest -m tag目录/具体某天.xml

(3)更新代码:

repo forall -c git reset –hard && repo forall -c git clean -fd && repo sync -cj24

git

stash

git stash save “modify bug_1” 将目前的修改保存起来
git stash list 查看通过上述命令都保存了哪些
git stash apply stash@{1} 恢复后并没有删除stash列表中的,可以通过 git stash drop stash@{0} 来删除
git stash pop stash@{0} 恢复的同时也删除了stash中的

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值