3 ms·
My git config: [alias] lg = log --graph --abbrev-commit --decorate --date=format-local:'%Y-%m-%d %H:%M' --format=format:'%C(bold blue)%h%C(reset) | %C(bo
by sandreas 3y ago
My git config:
[alias]
lg = log --graph --abbrev-commit --decorate --date=format-local:'%Y-%m-%d %H:%M' --format=format:'%C(bold blue)%h%C(reset) | %C(bold green)%ad%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all -n 15
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --decorate --date=short
quick-push = "!f() { git add . && git commit -m \"$1\" && git push; }; f"
search = lg -E -i --grep
[user]
email = xxx
name = sandreas
[core]
ignorecase = false
autocrlf = input
excludesfile = ~/.gitignore_global
[url "https://github.com/"]
insteadOf = git@github.com:
[url "ssh://git@github.com/sandreas/"]
insteadOf = https://github.com/sandreas/
[url "ssh://git@github.com/sandreas/"]
insteadOf = git@github.com:sandreas/
The quick-push might be interesting. It calls a function `f`, which is defined before, to
git add .
git commmit -m "$1"
git push
This can be used to define small git workflows as alias.