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 rebase after merge confused about deleted file
  • understanding the steps for cloning and pushing on Github
  • Perl and Ruby modules in the same repository?
  • Why is Git trying to connect to the wrong host?
  • GIT commit from memory, not file
  • git client and browser separation on https server
  • 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?

  • How can I control what git repository branches are included as releases in satis?
  • There isn't anything to compare. Nothing to compare, branches are entirely different commit histories
  • GitHub for Mac no longer installs Git message
  • GIT Sourcetree existing files show up as new (case sensitive in windows)
  • Sequentialization and parallelization of builds in Phabricator
  • How to make git log decorate by default
  • 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.