diff options
Diffstat (limited to 'cheatsheet.txt')
-rw-r--r-- | cheatsheet.txt | 8 |
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 |