error: Untracked working tree file 'XXXXX' would be overwritten by merge. 需要执行下面的命令才能修复: git reset --hard HEAD git clean -f -d git pull