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

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -