xxxxxxxxxx
This git command is used to compare changes between two commits, branches or any git data source.It takes in two data sets & outputs their differences. Example `git diff branchOne branchTwo `
xxxxxxxxxx
## View all the merge conflicts:
git diff
## View the conflicts against the base file:
git diff --base <filename>
## Preview changes, before merging:
git diff <sourcebranch> <targetbranch>
xxxxxxxxxx
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