From ecc2435f3e729ed6be98dfc7f59f76c7d0fb265c Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 13 Jul 2019 00:55:04 +0200 Subject: [PATCH] [ADD][GIT] Aliases for logging and misc utilities --- git/.gitconfig | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/git/.gitconfig b/git/.gitconfig index 18b7cb2..4395071 100644 --- a/git/.gitconfig +++ b/git/.gitconfig @@ -1,22 +1,30 @@ [core] - excludesfile = ~/.gitignore + excludesfile = ~/.gitignore [color] - ui = auto - branch = auto - diff = auto - interactive = auto - status = auto + ui = auto + branch = auto + diff = auto + interactive = auto + status = auto [commit] - verbose = true + verbose = true [pull] - rebase = true + rebase = true [branch] - autosetubrebase = always + autosetubrebase = always [push] - default = simple + default = simple [rebase] - autoSquash = true - autoStash = true + autoSquash = true + autoStash = true [user] - email = bruno.belanyi@epita.fr - name = Bruno BELANYI + email = bruno.belanyi@epita.fr + name = Bruno BELANYI + +[alias] + lol = log --graph --decorate --pretty=oneline --abbrev-commit + lola = log --graph --decorate --pretty=oneline --abbrev-commit --all + trim = reflog expire --expire-unreachable=now --all + chop = gc --prune=now + optimize = repack -a -d -f --depth=250 --window=250 + pf = pull --ff-only