myshellconfig/.gitconfig

51 lines
1.8 KiB
INI
Raw Normal View History

[credential]
helper = cache --timeout=1200
[user]
name = Jakobus Schürz
email = jakobus.schuerz@schuerz.at
2020-07-06 10:32:06 +02:00
[author]
name = Jakobus Schürz
email = jakobus.schuerz@schuerz.at
[committer]
name = Jakobus Schürz
email = jakobus.schuerz@schuerz.at
[push]
default = simple
[core]
editor = vim
excludesFile = ~/.gitignore_global
[diff]
submodule = log
[alias]
last = log -1 HEAD
unstage = reset HEAD --
visual = !gitk
tree = log --oneline --decorate --graph --all
treedate = log --oneline --decorate --graph --all --date-order --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%C(cyan)%h%Creset %C(black bold)%ad%Creset%C(auto)%d %s'
treefull = log --graph --all
hist = log --pretty=format:'%h %ad | %s%d [%an : %cn]' --graph --date=short
fixcached = rm -r --cached .
delete-last-commit = reset --soft HEAD~1
purge-last-commit = reset --hard HEAD~1
pushdetachedhead = push origin HEAD:master
getbranchauthor = "!f() { git for-each-ref --format='%(committerdate) %09 %(authorname) %09 %(refname)' | sort -k5n -k2M -k3n -k4n; }; f"
2020-07-16 08:52:29 +02:00
getbranchcommitter = "!f() { git for-each-ref --format='%(committerdate) %09 %(committername) %09 %(refname)' | sort -k5n -k2M -k3n -k4n; }; f"
2020-02-13 14:01:31 +01:00
grepp = grep --break --heading --line-number
grephist = "!f() { regex=$1; git grep --break --heading --line-number -e $regex $(git rev-list --all); }; f"
2020-10-30 14:26:59 +01:00
sdiff = !"git diff && git submodule foreach 'git diff'"
spush = push --recurse-submodules=on-demand
supdate = submodule update --remote --merge
[merge]
conflictstyle = diff3
tool = vimdiff
[mergetool]
prompt = false
[alias]
pushup = "!gitbranchname() { git symbolic-ref --short HEAD; }; gitpushupstream() { git push --set-upstream origin `gitbranchname`; }; gitpushupstream"
[include]
path = ~/.gitconfig_local
2020-10-30 14:31:14 +01:00
[submodule]
recurse = true