Git basics

See the history of one file

Every change ever made to a file, and who last touched each line.

Fill these in once
  1. Every commit that changed it, with the changes
    Terminal
    git log --follow -p -- index.html

    Press q to quit.

  2. Who last changed each line
    Terminal
    git blame index.html
  1. Every commit that changed it, with the changes
    Terminal · Ubuntu / Debian
    git log --follow -p -- index.html

    Press q to quit.

  2. Who last changed each line
    Terminal · Ubuntu / Debian
    git blame index.html
  1. Every commit that changed it, with the changes
    PowerShell
    git log --follow -p -- index.html

    Press q to quit.

  2. Who last changed each line
    PowerShell
    git blame index.html