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"
just btw, you can add such aliases directly to your
~/.gitconfig
, like so: