repo 强制恢复初始代码

忽视本地修改,强制恢复初始

# 将HEAD强制指向manifest的库,而忽略本地的改动。
repo sync -d

# Remove all working directory (and staged) changes.
repo forall -c 'git reset --hard'   

# Clean untracked files
repo forall -c 'git clean -f -d'   

# 拉代码
repo sync -c

 

posted @ 2025-11-07 18:25  张大帅哥  阅读(2)  评论(0)    收藏  举报