I've tried to change my last commit message so I did git commit --amend
after that I didn't change anything, close my editor and my last commit is gone, how can I retrieve?
EDIT:
You can solve that problem using the information of comments about. On my problem git reflog
and git checkout HEAD{0}
solved.