Adding Git Bash Alias

I created an alias for this git diff --stat origin/master


An alias for this

  dp = "!DIFF_PREVIEW=$(git diff --stat origin/master HEAD);"


When I run dp

, Git Bash works, but nothing appears in the terminal window. If I type git diff --stat origin/master

it actually shows my commits in the terminal window.

How can I change my alias so that it also reproduces this?


source to share

1 answer


  dp = diff --stat origin/master HEAD


must work.



All Articles