How can I visualize Git Flow branches?

git
54,317

Solution 1

You have not specified whether you are looking for a command line tool or not, but if so, I find that something like this gives you a good appreciation of the branch structure

git log --all --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit

And of course you can create an alias for this with git config, eg

git config --global alias.lg "log --all --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"

Solution 2

If your code is in a public github repo, you might want to look at http://beta.gitflowchart.com. For Atlassian Stash, there is a plugin that does this too (not free).

Disclosure: I wrote the underlying library for both tools.

Solution 3

I suggest you to use GitKraken to get such images.
It is a Git GUI client for Windows, Mac and Linux.
In it you have a nice visuals like the Commit History.

GitKraken

There are more Git GUIs, such as:

SourceTree, available for free for Windows and MacOS.

Tower

Here's a list of them from Git's official website and a list of them from Wikipedia that may be of help.

Share:
54,317

Related videos on Youtube

poc
Author by

poc

Updated on September 18, 2022

Comments

  • poc
    poc over 1 year

    I use the Git Flow workflow. But I can't generate a good-looking log in tree graph. The size is too small and won't show all the branch relationships like in the Git Flow chart.

    How can I create a graph like this for my Git repository?

    This is how Tower shows it.

    • slhck
      slhck over 10 years
      Asking for tool recommendations is not encouraged. In essence, are you asking how to create a log that resembles the Git Flow graph? Do you need this via git log or a graphical tool? Have you seen Visualizing branch topology in git?
  • Transformer
    Transformer almost 9 years
    I wanted to give beta.gitflowchart.com a try, but it asking for too many permissions for me to be comfortable with: "This application will be able to read and write all public repository data. This includes the following:". Why is it requesting write access to everything?
  • Icaro Bombonato
    Icaro Bombonato almost 9 years
    @AdamRalph: yes, that is unfortunate. If you request access to a users data, you pass in a scope. This is defined here: developer.github.com/v3/oauth/#scopes I'm not sure what the correct way of requesting only read access to your public repos would be. Please take my word that we will only read your data and not change anything.
  • Transformer
    Transformer almost 9 years
    If the repos are public anyway, why do you need to specify anything for them? You already have access, no?
  • Icaro Bombonato
    Icaro Bombonato almost 9 years
    Yes, that sounds plausible. I have to look into that again. Actually a long time since we put our that beta. I'm not actively working on it.
  • Icaro Bombonato
    Icaro Bombonato over 8 years
    @AdamRalph I've fixed that. The site now requires only to read your public data. Thanks for alerting me, this scope was very inappropriate.
  • Bernardo Dal Corno
    Bernardo Dal Corno over 6 years
    In Windows, replace ' for "