Show diff between commits

前端 未结 11 2016
闹比i
闹比i 2020-12-02 04:00

I am using Git on Ubuntu 10.04 (Lucid Lynx).

I have made some commits to my master.

However, I want to get the difference between these commits. All of

11条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-02 04:33

    Let's say you have one more commit at the bottom (oldest), then this becomes pretty easy:

    commit dj374
    made changes
    
    commit y4746
    made changes
    
    commit k73ud
    made changes
    
    commit oldestCommit
    made changes
    

    Now, using below will easily server the purpose.

    git diff k73ud oldestCommit
    

提交回复
热议问题