Want to do action on pre-commit hook

want to run shortcut key action on pre-commit git hook