I could not come back to the master branch. I used several Git Bash command. I am mentioning all those with the result below.
git checkout master
Output:
error:pathspec 'master' did not match any file(s) known to git.
git branch master
Output:
fatal: Not a valid object name : 'greet'.
git branch
git branch -d greet
Output:
fatal:Couldn't look up commit object for HEAD
I searched a lot in Google Search and Stack Overflow, but I could not find any solution. I installed and reinstalled Git several times. Also, I have tried to delete all the folders related to Git to get a solution.
git initorgit clone?git checkout master) - but there's something wrong with your repository.git branchproduced NO output at all? That indicates something is very wrong with the repository. Can you also add output ofgit status, please?