Skip to content

Instantly share code, notes, and snippets.

@akagaeng
Last active June 29, 2022 03:14
Show Gist options
  • Save akagaeng/f5670be5f43fb936d7f5a1840785f87b to your computer and use it in GitHub Desktop.
Save akagaeng/f5670be5f43fb936d7f5a1840785f87b to your computer and use it in GitHub Desktop.
git log command line
# 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