Skip to content

Instantly share code, notes, and snippets.

@krebernisak
Created September 25, 2013 10:04
Show Gist options
  • Save krebernisak/6697591 to your computer and use it in GitHub Desktop.
Save krebernisak/6697591 to your computer and use it in GitHub Desktop.
All commits between two tags/commits
git log [TAG1]..[TAG2] --oneline
@ezarko
Copy link

ezarko commented Jun 13, 2019

For me, it worked with 3 dots between tags.
git log 'v3.8.0'...'v3.7.0' --oneline

git diff [] [--] […​]
This is to view the changes between two arbitrary .

git diff [] .. [--] […​]
This is synonymous to the previous form. If on one side is omitted, it will have the same effect as using HEAD instead.

git diff [] ... [--] […​]
This form is to view the changes on the branch containing and up to the second , starting at a common ancestor of both . "git diff A...B" is equivalent to "git diff $(git merge-base A B) B". You can omit any one of , which has the same effect as using HEAD instead.

@themodernlife
Copy link

@ezarko 👍

@MariSytnyk
Copy link

Thanks! This helped me a lot today!

@lucmann
Copy link

lucmann commented Nov 28, 2022

git rev-list --count [TAG1]..[TAG2] works for me (git version 1.8.3.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment