Used the GitHub GUI for COMMIT & SYNC and everything disappeared

So in GitHubGUI, as usual, I made my changes and then clicked Commit&Sync

and the "Merge Conflics" dialog appeared for a short time, after which everything disappeared and I synced the most recent changes to the remote repo.

All that I have hidden.

This happened before, after I pushed Commit&Sync

after the merge errors I was trying to fix, but this time literally everything just disappeared like I just did the command pull

and git wouldn't catch my commit.

Is there a way to recover these files? The GUI fixes them first and then pushes them. So I guess he had to go somewhere lol.

Edit:
Did:

git reflog show
ae0217a HEAD@{1}: rebase finished: returning to refs/heads/master
ae0217a HEAD@{2}: checkout: moving from master to a....(edited letters)
2729389 HEAD@{3}: commit: First side menu change : changed size, colors, and added icons
2bf6181 HEAD@{4}: pull: Fast-forward

      

So, " commit

" is on HEAD@{3}

, but how do I go back to it, or master

does my change appear on ?

+2


source to share


1 answer


Have to:

git reset --hard HEAD {3}



to go back to my commit which "disappeared".

https://www.kernel.org/pub/software/scm/git/docs/git-reset.html

0


source







All Articles