Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save elenzil/d3af54a16c7562bfdcd19d440f9fce7c to your computer and use it in GitHub Desktop.
Save elenzil/d3af54a16c7562bfdcd19d440f9fce7c to your computer and use it in GitHub Desktop.
command-line for viewing a repository's network graph similar to GitHub's
# GitHub recently "deprecated" the network view of repositories, which was a tool i relied on.
# merging this S.O. answer: https://stackoverflow.com/a/9074343/230851
# with some other research gets me to the command below.
# the only notable addition is setting the ordering to --date-order, to match github's network view.
#
# note!
# you'll still need to `git fetch` prior to this to view branches on the server.
git log --all --graph --date-order --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment