To reset a local branch,
git branch -f master last-release
To reset a remote branch,
git push -f origin last-release:master
where last-release
is the ref (commit id or branch) you want to reset master
to.
(Neither of these affect your working tree; you can even do these from a bare repo, if you wish.)