Due to some bad cherry-picking, my local Git repository is currently five commits ahead of the origin, and not in a good state. I want to get rid of all these commits and st
I had a situation where I wanted to remove a commit that wasn't pushed, but the commit was before another one. To do so, I've used the following command
git rebase -i HEAD~2 -> it will rebase the last two commits
And I used 'drop' for the commit signature that I wanted to remove.