1、忽略本地的改动。
repo sync -d
2、Remove all working directory (and staged) changes.
repo forall -c 'git reset --hard'
3、Clean untracked files
repo forall -c 'git clean -f -d'
4、 拉代码
repo sync -c
原文链接:https://blog.csdn.net/fly2700/article/details/119729208