Reputation: 5157
Is there a way of seeing a git tree
command on GitHub?
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
Upvotes: 10
Views: 24046
Reputation: 4014
From a project's home page, click on Insights then Network, and it will show the history graph.
For example: https://github.com/git/git/network. Change git/git
with your project path.
Direct link: https://github.com/**path-to-project**/network
Upvotes: 14
Reputation: 611
GitHub doesn't support directly executing git commands from within GitHub. You will have to clone the repo to your machine and use the git commands (like git log) from that machine.
But if you just want the graph, there is a work around using browser extension.
Install the extension from here : https://chrome.google.com/webstore/detail/le-git-graph-commits-grap/joggkdfebigddmaagckekihhfncdobff
It will add a new "commits" section to every GitHub repo you open. Open the commits graph and there, all commits across branches will be listed along with the git graph.
Hope it helps!
Upvotes: 4