git tree

Just a quick one based on today’s git ready: text-based graph. That describes how to get nice ascii-charts of your git repo. But the command is too long to type. So:

  git config --global alias.tree 'log --graph --pretty=oneline'

Now, I can just do git tree. Lovely.

Comments 3

  1. bartman wrote:

    Good idea. I added abbreviated IDs…

    git config --global alias.tree "log --graph --pretty=oneline --abbrev-commit"
    Posted 27 Jan 2009 at 14:22
  2. dom wrote:

    Oooh, that’s lovely. Thanks!

    Posted 27 Jan 2009 at 14:40
  3. Aristotle Pagaltzis wrote:

    Now add --decorate and then use --all as needed, and you’ll never again mourn the inability to run gitk on a repository you’re working on while SSHed into a server.

    Posted 27 Jan 2009 at 16:42