Update pre_commit hook file on version control
问题 I recently updated my pre_commit.sample file to run rubocop upon a commit (renamed to pre_commit). #!/bin/sh # # Check for ruby style errors rake run:rubocop Mistakingly I thought this would update on other developers machines when pulling the changes. How can i ensure that anyone who pulls the change has their pre_commit file updated Thanks 回答1: As I mentioned in "Git commit hooks - global settings" and "change default git hooks" last May 2016, Git 2.9 and 2.10 introduced git config core