~kiril/dotfiles

dc6248edbd7284624b1e71a7701323f8bf2c41d7 — Kiril Vladimirov 1 year, 6 months ago 4753024
gitconfig: steal aliases from Rado Stankov

See: https://blog.rstankov.com/git-tricks/
1 files changed, 2 insertions(+), 0 deletions(-)

M gitconfig
M gitconfig => gitconfig +2 -0
@@ 25,6 25,7 @@
[push]
	default = tracking
[alias]
	amend = commit --amend
	bc = !git rev-parse --abbrev-ref HEAD | wl-copy
	b = branch
	c = "!git checkout $(git-fzf-branch)"


@@ 35,6 36,7 @@
	sync = !git pull && git push
	tree = log --graph --simplify-by-decoration --all --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%C(bold red)%d%C(reset) - %C(cyan)(%ad)%C(reset) %C(bold green)%s%C(reset) %C(bold blue) - %an <%aE>%C(reset) %C(bold red)[%GK]%C(reset)'
	root = rev-parse --show-toplevel
	undo = reset --soft HEAD^
	wip = for-each-ref --sort='authordate:iso8601' --format=' %(color:green)%(authordate:relative)%09%(color:white)%(refname:short)' refs/heads
[color "diff-highlight"]
	oldNormal = red bold