What is the difference between git diff HEAD and git diff --staged? I tried both but both give the same output.
git diff View difference between Stage and Working Directorygit diff --staged View difference between HEAD and Stagegit diff HEAD View difference between HEAD and Working Directory
img src
img src
origin refers to the source repository from where it was cloned. HEAD is a reference to the last commit in the currently checked-out branch.