The last commit I made to the master branch is where I want to get everything back to. I made a lot of changes and committed them to a new branch I created called omniauth. I would like to delete this branch entirely and restore everything back to the last master commit. How do I do that?
Share
First you can switch back to the
masterbranch with:Then you can delete the
omniauthbranch with:Note that the
-Doption (as opposed to the safer-d) will delete the branch regardless of whether the commits in that branch have been merged into your current branch.