git see diff of file code example
Example 1: git show diff in modified file
git diff [filename]
Example 2: git diff of a file
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