I was writing code and then I tried to commit the code but I got a message saying I have not pulled beforehand. Instinctively I pulled but later I saw that all the code I wrote was gone and was changed with the current one in Gitlab. Is there possibility to revert back to the code I had saved on my local machine ?
I do not know if it will be of any help but I can see the commit I tried to send when using git reflog.
I get 222a4f0 (HEAD -> main) HEAD@{0}: commit: mymessage.