拉取最新代码git pull origin master打印提交记录git log查看提交记录,获取idgit reflog恢复到某个提交记录git reset --hard 30ce919切换分支git checkout master