Recover a Deleted Git Branch with Reflog
In this quick tip, we'll see how to recover a removed Git branch using Reflog
First, run the following command to display the SHA1 of your commits:
$ git reflog
Look for the SHA1 code of your deleted branch and then run the following command:
$ git branch <sha1>
This will recover your deleted branch.
Get our Angular 2+ posts in your inbox
Buy our Full-Stack Angular 11 and GraphQL Book
Build a social app from scratch..