Resharper format pre-commit hook. It uses resharper to format all the files you're committing, and automatically restages them.
Get the latest version using bash, by running this command in the root of your repository:
curl -s https://raw.githubusercontent.com/GeeWee/reshaper-pre-commit-hook/master/install-git-hook.sh | sh
Note that this runs a shell script on your computer. You might want to review the script before running it.