Adding Git Bash Alias

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

.

An alias for this

[alias]
  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?

+3


source to share


1 answer


Just

[alias]
  dp = diff --stat origin/master HEAD

      



must work.

+3


source







All Articles