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
@popmonkey
Copy link

@ionox0 - use '

git log 'releases/3.14.0'..'releases/3.15.0' --oneline

@vaithagoni
Copy link

vaithagoni commented Aug 27, 2018

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

@lourencomcviana
Copy link

lourencomcviana commented Mar 1, 2019

i want to do that on github. My supervisor want to generate releases based on the commits and he dosen`t need to download the repo. I discover a way to do it by url repo/compare/2.2.0...2.2.1 but not in the interface. The dropdown and docs clearly tells you that can be done in the compare menu normally but it dosent work

@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