git log without tags

So I’m doing something like

 git log --graph --pretty='%h %d %s' -n10

to get brief history of my recent commits.

  • Git: Find last edits from a specific user in a specific file
  • Specify merge parent in git
  • Is there a trick to git log --follow a directory which has been renamed?
  • Git: I've a feature branch with 80+ commits. How can I safely merge it into develop/production without ruining the history?
  • How to find the common ancestor of two branches before a merge commit in git?
  • How to ignore files and folders with pull requests to github in distinct git clones installations?
  • The only issue I have is that most of the time I’m not interested in seeing the tags, only the branches. %d however shows both tags and branches. Is there some way I can only display branch names and not tags?

  • Git > dyld: lazy symbol binding failed: Symbol not found: _iconv_open
  • Installing Git on Cygwin says Makefile recipe failed
  • fetch all changes in remote server using single command
  • Should .git folders be stored in my SVN repo?
  • Git clone: Could not create Directory
  • How to exclude certain directories/files from git grep search
  • 2 Solutions collect form web for “git log without tags”

    git log --format="%C(auto) %h %s"

    enter image description here

    add this to your .gitconfig

    [alias]
            blog = log --graph --oneline --pretty=format:'%Cred%h%Creset - %C(yellow)%s%Creset %C(green)<%an>%Creset %C(blue)@%d%Creset' --abbrev-commit
    

    This way you get only the commit number, message how made the commit and in which branch it was committed. and you only have to type git blog and you can look at colors when you want

    and if you really only the branch name just do:

    git log --graph --oneline --pretty=format:'%C(blue)@%d%Creset'

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