Heloo, back again with me. In this tutorial i will share about " How to undo your deleted local branch ".
Story
maybe accidentally deleted the development or master branch in your local computer branch.
Step 1
- type in your cmd or git bash
git reflog
or you can see the sha after your deletedex: 112323
- After that, you can type
git branch branchname sha
- And tadaaa , your local branch has been restored 🎉
thanks for reading this article, you can connect with me in
Top comments (0)