search

Home  >  Q&A  >  body text

How does git find the log information between two (hash values) commit ids of a file?

There are now two version numbers:
1.f0c52c0375f4ad5cfec650cce404525e9a8cecb8
2.0c66b2 385aea58d07d728303609f8f6179865fca
I now know these two versions and want to know how to get the log information between these two versions.
Kneel down and thank you!

我想大声告诉你我想大声告诉你2813 days ago754

reply all(3)I'll reply

  • ringa_lee

    ringa_lee2017-05-02 09:33:34

    Try it

    git log f0c52c0..0c66b2

    or

    git log 0c66b2..f0c52c0

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-02 09:33:34

    git log first second
    
    

    reply
    0
  • 大家讲道理

    大家讲道理2017-05-02 09:33:34

    git log f0c52c0375f4ad5cfec650cce404525e9a8cecb8
    git log 0c66b2385aea58d07d728303609f8f6179865fca

    Compare the differences between the two versions:

    git diff f0c52c0375f4ad5cfec650cce404525e9a8cecb8 0c66b2385aea58d07d728303609f8f6179865fca

    reply
    0
  • Cancelreply