Last active
June 29, 2022 03:14
-
-
Save akagaeng/f5670be5f43fb936d7f5a1840785f87b to your computer and use it in GitHub Desktop.
git log command line
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
# git log | |
# Options | |
# --decorate: the ref name prefixes refs/heads/, refs/tags/ and refs/remotes/ will not be | |
printed. | |
# --graph: Draw a text-based graphical representation of the commit history on | |
printed in between commits | |
# --oneline: This is a shorthand for "--pretty=oneline --abbrev-commit" | |
$ git log --graph --decorate --oneline --all | |
# ~/.gitconfig | |
vim ~/.gitconfig | |
``` | |
[alias] | |
l = log --graph --decorate --oneline --all | |
``` | |
$ git l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment