You could use git alias or bash alias if you are using shell-available OS.
-
git alias : Run this command to add alias:
git config --global alias.dfw 'diff --ignore-space-change'--ignore-space-change can be abbreviated to -w
to apply the alias using:git dfw -
bash alias : Run this command to add bash alias:
echo "alias gitdfw='git diff --ignore-space-change'">>~/.profileOpen a new terminal and you can directly run
gitdfwto achieve the same.