Hacker News new | ask | show | jobs
by ToJans76 3572 days ago
for the first one, you don't need rebase afaik:

    git branch name-of-the-correct-branch
   
    git reset --hard HEAD~

    git checkout name-of-the-correct-branch