How to compare two tags with git?

后端 未结 4 1301
挽巷
挽巷 2020-11-28 17:04

I would like to do a diff between two tags and committed changes between those two tags. Could you please tell me the command?

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-28 17:48

    For a side-by-side visual representation, I use git difftool with openDiff set to the default viewer.

    Example usage:

    git difftool tags/ tags/
    

    If you are only interested in a specific file, you can use:

    git difftool tags/: tags/:
    

    As a side-note, the tags/s can be replaced with es if you are interested in diffing branches.

提交回复
热议问题