错误我删除了我的一个git分支。有什么方法可以恢复它吗?如何恢复已删除的git分支?
我用下面的命令:
$ git push :development
我想恢复这个分支。我在主分支上,它没有显示任何删除命令正在运行:
$ git reflog
1b716a1 [email protected]{0}: checkout: moving from master to origin
1b716a1 [email protected]{1}: reset: moving to origin
91791dc [email protected]{2}: reset: moving to 91791dc
1b716a1 [email protected]{3}: checkout: moving from master to master
1b716a1 [email protected]{4}: pull: Merge made by the 'recursive' strategy.
91791dc [email protected]{5}: commit: Fix Total Label crash
198de6f [email protected]{6}: commit: Fix the Total Label crash
@GlostRider ..检查此[链接](http://stackoverflow.com/questions/4674226/does-github-keep-deleted-remote-branches-in-history-如果这样可以那些恢复) – gks
你还有一个本地分支指向删除分支的提示吗? – knittl
@Stranger:我读过这个链接,但是它告诉创建新的分支 – GhostRider