Created
May 2, 2019 17:04
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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