Don't want to see package-lock.json
and yarn.lock
in your git diff
? Here are two nifty aliases that hide these files from your diff.
alias gd="git diff -- :!package-lock.json :!yarn.lock"
alias gds="git diff --staged -- :!package-lock.json :!yarn.lock"
That's right :) but that would still require you to prefix each command with
git
such as:git d
vs. just typing the following in your terminalgd
.