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 I knew the hash of the commit I could retrieve it with:
git checkout -b rama EL_HASH
But I don't know what hash it has, I didn't look at it.