Skip to content

Instantly share code, notes, and snippets.

hist = log --pretty=format:\"%C(yellow)%h%Creset %ad | [%C(cyan)%an%Creset] %C(green)%d%Creset %s\" --graph --date=short
mine = "!f() { git log --pretty=\"%H\" --author=\"$(git config user.name)\" | while read commit_hash; do git show --oneline --name-only $commit_hash | tail -n+2; done | sort | uniq; }; f"
pr = "!f() { git fetch $1 pull/$2/head:pr-$2 && git checkout pr-$2; }; f"