Need assistance on recovering HEAD and commits

meetings
Tags: #<Tag:0x00007f23d63d7650>

(CLIFF GITA) #1

Hello community, I have been squashing my commits in TRUNK-4742 and accidentally squashed them into another branch and when i run git log its shows that the HEAD & commits are in Michal Fotyga (TRUNK-5474)! Any one who can help me get back the HEAD and commits to my branch

Capture|525x165


(Juliet Wamalwa) #2

Have you tried this command "git reset HEAD <file>…" to undo the changes?


(CLIFF GITA) #3

i have tried it out but its showing me that the commit on TRUNK-4747 is under a different person https://pastebin.com/zqr4VyvR


(Juliet Wamalwa) #4

Sorry you used a different command. Its "git reset HEAD <file>


(CLIFF GITA) #5

thanks for the correction


(Nathan Ruhanga) #6

@gcliff , hope this helps


(CLIFF GITA) #7

thanks Nathan