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
忽视本地修改,强制恢复初始
# 将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