Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I visualize GitHub branch history on Windows?

Every time I was thinking of switching all of our little team's projects to git / github, what pained me was that there didn't seem to be a tool to visualize all this social coding goodness.

When we all start wildly branching, forking and merging, I feel we're going to need a tool that would let us graphically see the full picture of our repository and its multitude of branches, in order to come up with a plan to merge it all back at some point into one and only truth (the proverbial origin/master).

I've tried googling for such a visualization tool on several occasions, but came up empty handed. Was hoping that GitHub for Windows would solve this once and for all, but all it shows is linear history for a particular checked out branch.

What I'm looking for is something akin to what TortoiseHg has - a graph showing all branches and commits. Are you aware of any such tools? (We're on Windows.)

like image 805
Dav Avatar asked Sep 07 '12 19:09

Dav


People also ask

How do I find my GitHub branch history?

Click History. On the History tab, click the commit you'd like to review. If there are multiple files in the commit, click on an individual file to see the changes made to that file in that commit.


5 Answers

SourceTree seems friendlier than TortoiseGit for the graphs and you can interact with the graph as well.

Source Tree

like image 78
Adam Tegen Avatar answered Oct 06 '22 05:10

Adam Tegen


Stick with msysgit

gitk --all 

is what you want. From there you can even checkout branches, reset them, view diffs, etc.

For something quicker, I would suggest

git log --all --decorate --oneline --graph

This gets piped through less by default which gives you good navigation including search.

Another option is just to install linux in a VM (virual box is free) and use tig. You can ssh to the VM so you don't have to deal with the VM itself while using linux.

like image 25
Adam Dymitruk Avatar answered Oct 06 '22 07:10

Adam Dymitruk


GitExtensions is your best bet.

enter image description here

TortoiseGit is ok, though in it's attempt to "protect us from ourselves", they hide some of the native power of Git. Fail.

SeeGit is an interesting project from Phil Haack that helps visualize things.

enter image description here

The best tool is the command-line and a quick command like this is probably easiest and most powerful:

git log --oneline --graph --decorate --all
like image 44
robrich Avatar answered Oct 06 '22 05:10

robrich


That pretty much would have to be TortoiseGit since you are already familiar with TortoiseHg. (Check All Branches)

enter image description here

like image 32
prusswan Avatar answered Oct 06 '22 05:10

prusswan


Now days VScode has extension called git-graph, which worked best for my needs.

like image 22
Filip Nikolov Avatar answered Oct 06 '22 06:10

Filip Nikolov