Thursday, October 8, 2020

repo index

error: Your local changes to the following files would be overwritten by checkout:
    Android.mk
    extendedcommands.c
    flashutils/Android.mk
    flashutils/flashutils.c
    flashutils/flashutils.h
    mounts.c
    mounts.h
    nandroid.c
    roots.c
Please, commit your changes or stash them before you can switch branches.
Aborting
error: Your local changes to the following files would be overwritten by checkout:
    encore.mk
    init.encore.rc
Please, commit your changes or stash them before you can switch branches.
Aborting
<few more errors like this.........>
error: bootable/recovery/: CyanogenMod/android_bootable_recovery checkout 50822991460cbee65757e9de12b29e39238d6386 
error: device/bn/encore/: CyanogenMod/android_device_bn_encore checkout f6586ab41f0e3f5acfa16b43f9b17008e9bb0524 


解法:丢弃修改

repo forall -c git reset --hard HEAD


How switch to special tag?

repo forall -c "git checkout <special tag>"


repo sync -c -n -j4 && repo sync -c -l -j 16 

前面是抓code, 後面是長code


repo 打 tag

repo forall -c 'git tag spectralink_sprint_8'

repo forall -c 'git push origin --tags'

切换到另一个分支

repo forall -c git checkout your_branch

删除分支

repo forall -c git branch -D 分支名称


[git]repo、branch和tag取名建議和注意事項 - 怎麼取名比較不會有問題

No comments:

Post a Comment

n8n index

 【n8n免費本地端部署】Windows版|程式安裝x指令大補帖  【一鍵安裝 n8n】圖文教學,獲得無限額度自動化工具&限時免費升級企業版功能