This is a pre-commit hook for git that will run code cleanup with ReSharper Command Line Tools on files that are being committed.
Open a terminal (git bash on Windows), navigate to the root of your git repository, and run the following command:
curl -s https://raw.githubusercontent.com/casuology/resharper-git-hook/main/install.sh | bash