git reflog
ищете хеши потерянных коммитов.git branch new-branch-name hash
git checkout develop
git merge new-branch-name
git reflog
dbb617a (HEAD -> master, origin/master) HEAD@{0}: commit:
1ca5b87 HEAD@{1}: commit:
1019604 HEAD@{2}: commit:
1ca5b87 HEAD@{3}: commit:
d12b1cc HEAD@{4}: commit:
a3ac3cd HEAD@{5}: commit:
d12b1cc HEAD@{6}: commit:
dfeec8b HEAD@{7}: commit:
771269e HEAD@{8}: commit:
d5abae5 HEAD@{9}: commit:
33ec341 HEAD@{10}: commit:
git reset HEAD@{index}