mirror of
https://github.com/IonicaBizau/git-stats.git
synced 2024-11-13 07:31:15 +01:00
Added the script that will init the git hooks
This commit is contained in:
parent
604db780ef
commit
e394b2ec99
1 changed files with 11 additions and 0 deletions
11
scripts/init-git-post-commit
Normal file
11
scripts/init-git-post-commit
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
git config --global init.templatedir '~/.git-templates'
|
||||
mkdir -p ~/.git-templates/hooks
|
||||
|
||||
cat << EOF > ~/.bat/logo.svg
|
||||
#!/bin/sh
|
||||
|
||||
# Copy last commit hash to clipboard on commit
|
||||
echo 'POST COMMIT'
|
||||
EOF
|
Loading…
Reference in a new issue