Skip to content

Instantly share code, notes, and snippets.

@jimmiehansson
jimmiehansson / .gitconfig
Created April 17, 2018 13:56
git config
[alias]
# View abbreviated SHA, description, and history graph of the latest 20 commits
l = log --pretty=oneline -n 20 --graph --abbrev-commit
# View the current working tree status using the short format
s = status -s
# Show the diff between the latest commit and the current state
d = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat"