I was trying out Magit on Spacemacs and wanted to push one of my commits to remote, but I realized I had never actually selected a branch after cloning the repository. When I went into one of the branches I realised I had no way to get back to the commit I just made. I did make a commit but it was not tied to any branch it seems, since I can't find the commit on any of the [b b] branches. Does anyone know how I can get back to the commit? Would be a shame to lose the work I just made to the void, tried finding a log file for it but no results there either since everything is tied to branches.
asked Aug 31, 2024 at 18:16
GrusenGrusen322 bronze badges
Just as with any other git client, use the git reflog.
answered Aug 31, 2024 at 21:42
db48xdb48x19.8k11 gold badge2424 silver badges3030 bronze badges
0Start asking to get answers
Find the answer to your question by asking.
Ask questionExplore related questions
See similar questions with these tags.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4