Fix git alias that masks secret values

This commit is contained in:
Dave Gallant
2021-09-14 19:13:43 -04:00
parent fff5024670
commit a1e36ac39f

View File

@@ -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";
}; };