1、打開終端,cd到項(xiàng)目目錄2、查詢提交日志:Git reflog3、找到誤刪的分支最后一次提交記錄,復(fù)制commit id4、恢復(fù):git branch <恢復(fù)后的分支名>? commitId