1、使用reflog,找到最后一次commitid
git reflog --date=iso
2、找到目标分支最后一次的commit ID
298dax2 HEAD@{2019-05-13 15:35:18 +0800}: test
3、进行恢复
git checkout -b 分支名称 298dax2
4、
切出分支后,本地有分支了,再push到远程仓库就可以了
git push origin 分支名称
1、使用reflog,找到最后一次commitid
git reflog --date=iso
2、找到目标分支最后一次的commit ID
298dax2 HEAD@{2019-05-13 15:35:18 +0800}: test
3、进行恢复
git checkout -b 分支名称 298dax2
4、
切出分支后,本地有分支了,再push到远程仓库就可以了
git push origin 分支名称