user3259232
user3259232

Reputation: 95

Adding Git Bash Alias

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

The alias for this is

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

When I run dp, Git Bash works, but it does not show anything in the terminal window. If I type git diff --stat origin/master, it actually shows my commits in the terminal window.

How can I modify my alias so it reproduces this as well?

Upvotes: 3

Views: 109

Answers (1)

xdazz
xdazz

Reputation: 160943

Just

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

should work.

Upvotes: 3

Related Questions