I just deleted the wrong branch with some experimental changes I need with git branch -D branchName.
git branch -D branchName
How do I recover the branch?
If you know the last SHA1 of the branch, you can try
git branch branchName
You can find the SHA1 using git reflog, described in the solution here.
git reflog