View the change history of a file using Git versioning

后端 未结 24 1995
臣服心动
臣服心动 2020-11-22 16:40

How can I view the change history of an individual file in Git, complete details with what has changed?

I have got as far as:

git log -- [filename]
         


        
24条回答
  •  抹茶落季
    2020-11-22 17:23

    Lately I discovered tig and found it very useful. There are some cases I'd wish it does A or B but most of the time it's rather neat.

    For your case, tig might be what you're looking for.

    http://jonas.nitro.dk/tig/

提交回复
热议问题