If you want all the commits after revision XXX to have happened in a branch, I find this a lot easier than the other proposed methods.
$ git branch fixes # copies master to new branch
$ git reset --hard XXX # resets master to XXX
The commits are now only in the “fixes” branch.
This procedure is described in git’s help page for reset under “Undo a commit, making it a topic branch”.