Only local branches:
git branch --contains <commit>
To include remote branches as well:
git branch -a --contains <commit>