Skip to content

Instantly share code, notes, and snippets.

@etaf
Created June 28, 2019 01:12
Show Gist options
  • Save etaf/ab16d572109e545a44af94b4adf2b21c to your computer and use it in GitHub Desktop.
Save etaf/ab16d572109e545a44af94b4adf2b21c to your computer and use it in GitHub Desktop.
git config
# ~/.gitconfig
[color]
ui = auto
[alias]
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = !"git lg1"
sub = !"git submodule update --init --recursive"
st = !"git status"
showf = !"git show --pretty="" --name-only"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment