场景:项目被改崩了,需要重新开始编码 命令: git fetch --all git reset --hard origin/xxx IDEA: 选择reset HEAD 选择Hard,输入你要同步到本地的分支