From 754099b7218056a24d77aea0278bb3bc2c7a9716 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 5 Feb 2020 21:18:18 +0300 Subject: Add pre-commit-copyright-check git hook --- cheatsheet.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cheatsheet.txt') 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 /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 -- cgit v1.1