aboutsummaryrefslogtreecommitdiff
path: root/cheatsheet.txt
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-02-05 21:18:18 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-02-06 13:51:59 +0300
commit754099b7218056a24d77aea0278bb3bc2c7a9716 (patch)
tree56ae541e000ebbb713a60e15465ce44eac01c274 /cheatsheet.txt
parent9ecee2a02b69c867962688f859cea4c8a7c28796 (diff)
Add pre-commit-copyright-check git hook
Diffstat (limited to 'cheatsheet.txt')
-rw-r--r--cheatsheet.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/cheatsheet.txt b/cheatsheet.txt
index 42efbcd..8e18dd1 100644
--- a/cheatsheet.txt
+++ b/cheatsheet.txt
@@ -14,6 +14,14 @@ Global Setup
git config --global remote.origin.fetch '+refs/tags/*:refs/tags/*'
git config --global --unset remote.origin.tagopt
+ # Enable hooks globally.
+ #
+ git config --global core.hooksPath <git-project-dir>/hooks
+
+ # Override the global hooks with the repository-specific hooks (run in a
+ # repository directory).
+ #
+ git config core.hooksPath .git/hooks
Undo (move to index) last commit