參考資料:1芹橡、git引發(fā)的血案(cherry-pick找回丟失的commit) - 一只想跳舞的老鼠 - ITeye技術(shù)網(wǎng)站
2、?從Git倉庫中恢復(fù)已刪除的分支有勾、文件或丟失的commit[轉(zhuǎn)] - sumsung753的日志 - 網(wǎng)易博客
補充:
? ? ? ? git reset --hard commitid? //本地代碼回到指定的commitid
? ? ? ? git push -f origin branchname//git服務(wù)器代碼回到指定的commitid