Git - Diff

Table of Contents

About

Syntax

File

git diff HEAD myFile

Branch

Between the head of the main branch and the head commit of the current branch

git diff main..HEAD --summary
# Only deleted / renamed file
git diff main..HEAD --summary | egrep '(delete|rename)'

Powered by ComboStrap