我错误地删除了我的分支,如下所示:
git branch -D demo
但我想恢复它......我得到这个之后git reflog
541b2f5 HEAD@{23}: checkout: moving from demo to master
06fa6d5 HEAD@{24}: commit (merge): remove ajax call for deleting variables and transfomers
b84b60a HEAD@{25}: checkout: moving from demo1 to demo
我想用 sha 创建分支06fa6d5
……所以我尝试了这个:
git checkout -b demo 06fa6d5
git checkout -b demo HEAD@{24}
但我没有从中得到代码……</p>