git diff file-name #you can also add an alias on Mac alias gd="git diff" alias add_alias="code ~/.zshrc" #open the file in vscode