切换分支代码导致丢失
解决办法:
1、执行·git reflog可以看到提交记录

找到自己想要一次提交
git checkout e32dd10 //切换分支 git checkout -b temp //创建分支temp git checkout master //git merge temp 合并temp分支切换到master分支 git merge temp //合并temp分支 git branch -d temp //删除temp分支 完成
1、执行·git reflog可以看到提交记录

找到自己想要一次提交
git checkout e32dd10 //切换分支 git checkout -b temp //创建分支temp git checkout master //git merge temp 合并temp分支切换到master分支 git merge temp //合并temp分支 git branch -d temp //删除temp分支 完成