Files
dotfiles/git/gitconfig
2018-08-12 14:32:05 +02:00

89 lines
2.1 KiB
Plaintext

[user]
name = Hannes Körber
email = hannes.koerber@haktec.de
signingkey = 0x078A167A8741BD30
[github]
user = hakoerber
[alias]
untrack = "rm --cached"
unstage = "reset HEAD"
unmodify = "checkout --"
ignore-changes = "update-index --assume-unchangend"
unignore-changes = "update-index --no-assume-unchanged"
visual = "!gitk --all"
staged = "diff --staged"
fe = "fetch --all --prune"
co = "checkout"
ci = "commit"
st = "status"
br = "branch"
rb = "rebase"
rbi = "rebase --interactive"
rbc = "rebase --continue"
rba = "rebase --abort"
df = "diff"
gr = "! git graph"
k = "!gitk --all"
serve = !git daemon --reuseaddr --verbose --base-path=. --export-all ./.git
last = "log -1 HEAD"
logl = log --graph --decorate --pretty=oneline --abbrev-commit --all
pushall = "!sh -c 'for r in $(git remote) ; do [[ "$r" != "upstream" ]] && { echo \"--- [$r] ---\" ; git push $r \"$@\" ; } ; done' -"
branch-clean = "!sh -c 'git branch --merged | grep -v -e master -e develop -e '^*' | xargs --no-run-if-empty git branch -d'"
brc = "!git branch-clean"
graph = log --graph --pretty=format:'%C(yellow)%h%Creset%C(bold red)% D%Creset %C(green)(%cr) %C(blue)%an<%ae>%Creset%n %C(bold white)%s%Creset' --all
intercommit = !bash -c 'interdiff <(git show $1) <(git show $2) | less -FRS' -
drop = !git rebase --onto $1^ --
[core]
fileMode = true
whitespace = "blank-at-eol,space-before-tab,blank-at-eof"
abbrev = 8
[color]
ui = true
[column]
ui = auto
[push]
default = simple
[merge]
tool = vimdiff
[gc]
auto = 0
[advice]
pushNonFastForward = false
pushUpdateRejected = false
statusHints = false
commitBeforeMerge = false
detachedHead = false
[commit]
gpgSign = true
; cleanup = default
status = true
[status]
relativePaths = false
submoduleSummary = true
[pager]
log = less
show = less
diff = less
[gpg]
program = gpg2
[rebase]
autoSquash = true
[diff]
submodule = log
mnemonicPrefix = true
[branch]
autoSetupMerge = true
[clean]
requireForce = true