git alias not accepting shell command, Does it have any solution?

44 Views Asked by At

Working alias for ref:

git config  --global alias.br "branch -vva"

The below alias not working

git config  --global alias.br "branch -vva  | awk '{print $1}'"

The Git alias is not working after adding awk in command. Does it have any fix for it?

Running alias as below in terminal:

git br
0

There are 0 best solutions below