chore(git): configure git log aliases

This commit is contained in:
Yorick Barbanneau 2025-02-12 14:07:14 +01:00
parent 897ede8704
commit 8c736a9806

View file

@ -38,14 +38,19 @@ in
co = "checkout"; co = "checkout";
fa = "fetch --all"; fa = "fetch --all";
far = "!git fa; git rebase"; far = "!git fa; git rebase";
l = "log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"; l = "log --pretty=format:'%C(red)%h%C(reset) -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(dim white)<%an>%Creset'";
lg = "log --graph --decorate --pretty=oneline --abbrev-commit"; la = "l --all";
lg = "log --graph --abbrev-commit --decorate --format=format:'%C(red)%h%C(reset) %C(cyan)%aD%C(reset) %C(green)(%ar)%C(reset)%C(yellow)%d%C(reset) %C(dim white) <%an>%C(reset)%n'' %C(white)%s%C(reset)'";
lga = "lg --all";
pf = "push --force-with-lease"; pf = "push --force-with-lease";
rewrite = "!git commit --amend --no-edit && git push --force-with-lease"; rewrite = "!git commit --amend --no-edit && git push --force-with-lease";
st = "status -sb"; st = "status -sb";
}; };
extraConfig = { extraConfig = {
push = { core = {
abbrev = 8;
};
push = {
autoSetupRemote = true; autoSetupRemote = true;
default = "current"; default = "current";
}; };