mirror of
https://github.com/davegallant/nix-config
synced 2025-08-07 09:12:28 +00:00
Fix git alias that masks secret values
This commit is contained in:
@@ -47,24 +47,24 @@ in
|
|||||||
userName = "Dave Gallant";
|
userName = "Dave Gallant";
|
||||||
|
|
||||||
aliases = {
|
aliases = {
|
||||||
"aa" = "add -A .";
|
aa = "add -A .";
|
||||||
"br" = "branch";
|
br = "branch";
|
||||||
"c" = "commit -S";
|
c = "commit -S";
|
||||||
"ca" = "commit -S --amend";
|
ca = "commit -S --amend";
|
||||||
"cb" = "checkout -b";
|
cb = "checkout -b";
|
||||||
"co" = "checkout";
|
co = "checkout";
|
||||||
"d" = "diff";
|
d = "diff";
|
||||||
"dc" = "diff --cached";
|
dc = "diff --cached";
|
||||||
"dcn" = "diff --cached --name-only";
|
dcn = "diff --cached --name-only";
|
||||||
"ds" = "! git diff origin | sed -r 's/.*value:.*\"(.*)\"/\tvalue:\"************\"/'";
|
ds = "! git diff origin | sed -r 's/value: (.*)/value: \"************\"/'";
|
||||||
"l" =
|
l =
|
||||||
"log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit";
|
"log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit";
|
||||||
"ms" = "merge --squash";
|
ms = "merge --squash";
|
||||||
"po" = "push origin";
|
po = "push origin";
|
||||||
"pf" = "push -f";
|
pf = "push -f";
|
||||||
"por" = "push origin HEAD:refs/for/$1";
|
por = "push origin HEAD:refs/for/$1";
|
||||||
"st" = "status";
|
st = "status";
|
||||||
"wip" =
|
wip =
|
||||||
"for-each-ref --sort='authordate:iso8601' --format=' %(color:green)%(authordate:relative)%09%(color:white)%(refname:short)' refs/heads";
|
"for-each-ref --sort='authordate:iso8601' --format=' %(color:green)%(authordate:relative)%09%(color:white)%(refname:short)' refs/heads";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user