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) ?

  • Using previous pull on git
  • Using existing git with TFS
  • Custom commands with git-shell
  • git fetch doesn't fetch all branches
  • pull and replace the file that is existing
  • making changes to submodule, but not push it upstream
  • added new files during git interactive rebase, aborted rebase, new files missing
  • fatal: unable to get credential storage lock: File exists
  • my old username is still in use
  • Best workflow for developing npm packages that depend on each other
  • migrating existing project to git
  • git push to remote repository “Could not read from remote repository”
  • 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.