how can I list all the different versions of a file, and diff them also?

前端 未结 4 1379
慢半拍i
慢半拍i 2020-12-15 04:29

using git, I want to list all the different revisions of a given file.

Then, I want to choose a particular version and compare it when another.

How can I do

4条回答
  •  甜味超标
    2020-12-15 04:58

    I wrote a tool that would get you most of the way there (printing out the entire contents of a file, as it was in SHA-1-WHATEVER.

    git-cat

    You could either put a little shell script over that to do everything automatically, or the README.markdown file in that repository also gives references to where I learned all the stuff I needed to write the command.

提交回复
热议问题