Git snippets

Diff changes to 1 file between 2 commits

git diff [EARLIER COMMIT] [LATER COMMIT] — [FILE]

e.g.

git diff 5a19107 HEAD  — ./js/quiz/events.js

 

Diff all changes between 2 commits

git diff 5a19107 7u7867iop

    file name only

     git diff –name-only 5a19107 7u7867iop

Log – see commits between certain dates

git log –since “DEC 21 2021” –until “JAN 30 2022” –oneline