I have a local git repository. I wanted to try some changes out so I branched and tested. Then I didn't like the test so I deleted the branch. Then I found my whole commits were gone except for the first one.
Here are the git commands I used.
git checkout -b testing
Some files were edited with several commits on the testing branch.
git commit -a
Then I didn't like the changes and wanted to discard the changes.
git checkout master
git branch -d testing
At this point there was a warning saying that the testing branch was not fully merged. so I did
git branch -D testing
Then all of my commits on master
are gone.
What was wrong and is it possible to recover?