KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I recently screwed up a git rebase -i , and so I wanted to do a git reset --hard HEAD@{5} . However, doing a git reset --hard HEAD@{5} or git log HEAD@{5} caused the following error message to be shown: fatal: ambiguous argument 'HEAD@{5}': unknown revision or path not in the working tree. Then, I decided to specify the hash key corresponding to HEAD@{5} shown in git reflog instead. For instance: git reset --hard e8be841 In doing so, was there any risk screwing up the git repository or doing something unexpected?
Tags (comma-separated)
Save Edits
Cancel