You have made some commits, pushed it upstream to the remote branch, then realized that some or all of those commits must for some reason not be included. In example, accidently commiting large multimedia files (blobs) that will forever bloat the commit history of the branch.
- ensure all changes are commited in your current, "faulty" branch
- switch to your master branch
git checkout master
- update master with latest changes on remote