git - How do I delete a branch I created and revert everything back to the master branch's last commit? -
the last commit made master branch want to. made lot of changes , committed them new branch created called omniauth. delete branch entirely , restore last master commit. how do that?
first can switch master branch with:
git checkout master then can delete omniauth branch with:
git branch -d omniauth note -d option (as opposed safer -d) delete branch regardless of whether commits in branch have been merged current branch.
Comments
Post a Comment