I just deleted a git branch.
For example:
mkdir test
cd test
git init
echo "Viva yo" > test.txt
git add .
git commit -m "test"
git checkout -b rama
echo "Viva tu" > test2.txt
git add .
git commit -m "test2"
git checkout master
git branch -D rama
How can I recover the branch that I just deleted?
If you knew the commit hash, you could recover it with:
git checkout -b rama EL_HASH
But I do not know what the hash is, I did not look at it.