Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to restore deleted Git branches

Tags:

git

How to restore deleted branches.

I've made "git push --prune" and seems that nearly all branches were deleted remotly. Please help me!!

like image 220
Max Myasoed Avatar asked Nov 03 '22 13:11

Max Myasoed


1 Answers

You can use git reflog. reflog helps you in these scenarios. See The link below for further information:

http://blag.ahax.de/post/421939327/recovering-a-deleted-branch-using-git-reflog

like image 54
Farshid Avatar answered Nov 07 '22 21:11

Farshid