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.

This entry was posted in Uncategorized and tagged . Bookmark the permalink.

3 Responses to git tree

  1. 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.

  2. dom says:

    Oooh, that’s lovely. Thanks!

  3. bartman says:

    Good idea. I added abbreviated IDs…

    git config --global alias.tree "log --graph --pretty=oneline --abbrev-commit"