📌  相关文章
📜  如何在 git 中恢复已删除的分支 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:40.254000             🧑  作者: Mango

代码示例2
Yes, you should be able to do git reflog --no-abbrev and find the SHA1 for 
the commit at the tip of your deleted branch, then just git checkout [sha].
And once you're at that commit, you can just git checkout -b [branchname] to
recreate the branch from there.