Get commit list between tags in git

If I’ve a git repository with tags representing the versions of the releases.

How can I get the list of the commits between two tags (with a pretty format if is possible) ?

  • 'rm' + 'svn update' equivalent in Git?
  • Show Git version in R Code
  • Checking out multiple files of the same name in Git
  • Gitlab CI - How to trigger a build only if changes happen on particular set of files
  • Why isn't .gitignore ignoring .sass-cache?
  • Git: Pulling a rebased branch
  • Where to put documentation relating to multiple git repos
  • Gitignore exclude certain files in all subdirectories
  • Show the latest commit value within a web application?
  • Git: Find duplicate blobs (files) in this tree
  • How to effectively organize scripts so they can be put under version control?
  • Gitlab prompts for password while push for git user
  • 5 Solutions collect form web for “Get commit list between tags in git”

    git log --pretty=oneline tagA...tagB (i.e. three dots)

    If you just wanted commits reachable from tagB but not tagA:

    git log --pretty=oneline tagA..tagB (i.e. two dots)

    or

    git log --pretty=oneline ^tagA tagB

    git log takes a range of commits as an argument:

    git log --pretty=[your_choice] tag1..tag2
    

    See the man page for git rev-parse for more info.

    To compare between latest commit of current branch and a tag:

    git log --pretty=oneline head...tag
    

    To style the output to your preferred pretty format, see the man page for git-log.

    Example:

    git log --pretty=format:"%h; author: %cn; date: %ci; subject:%s" tagA...tagB
    

    FYI:

    git log tagA...tagB
    

    provides standard log output in a range.

    Git Baby is a git and github fan, let's start git clone.