```bash
git checkout origin/master -f -B fix/ng-resource-instance-constructor
curl https://github.com/jvandemo/angular.js/commit/b9d2dd17c3c7d03b0f0645bdd4b7365eb45adfc5.patch | git am
git push jvandemo fix/ng-resource-instance-constructor -f
```

(just swap your remote names for what they actually are in your repo)