1 2 3 4 5 6 7 8 9
#!/bin/bash mkdir -p .git/hooks cat >.git/hooks/post-commit <<EOF #!/bin/bash # Generated by $0 touch -c configure.ac EOF chmod +x .git/hooks/post-commit