Initial commit, not a lot to it yet
This commit is contained in:
commit
583af04e56
2 changed files with 22 additions and 0 deletions
11
home/.gitconfig
Normal file
11
home/.gitconfig
Normal file
|
@ -0,0 +1,11 @@
|
|||
[include]
|
||||
path = .gitconfig.local
|
||||
|
||||
[alias]
|
||||
d = diff
|
||||
l = log --graph --oneline --decorate --all
|
||||
st = status --short
|
||||
shove = "!f() { git push ${1:-origin} :; }; f"
|
||||
|
||||
[commit]
|
||||
gpgsign = true
|
11
home/.githooks/post-commit
Executable file
11
home/.githooks/post-commit
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
chmod a-x $0
|
||||
|
||||
msg="$(git log -n 1 --pretty=format:'%s%n%n%b')"
|
||||
guilt="$(git guilt HEAD~1 HEAD)"
|
||||
what="$(curl http://whatthecommit.com/index.txt)"
|
||||
|
||||
git commit --no-verify --amend -m $msg$'\n\n'$guilt$'\n\n'$what
|
||||
|
||||
chmod a+x $0
|
Loading…
Reference in a new issue