>/D_
Published on

Compare versions of a file in git

Authors
  • avatar
    Name
    Frank
    Twitter

Super quick tip because I'm always forgetting - if you want to compare an older version of a file with the most recent version in your git repository:

git difftool HEAD~50 path/to/file

Just swap out 50 with the number of commits you want to go back. Install Meld if you want a great diff tool to use.