Skip to content

Instantly share code, notes, and snippets.

@dennisgove
Created January 21, 2019 19:22
Show Gist options
  • Save dennisgove/b623a0aa56cff86052269eaae18a6272 to your computer and use it in GitHub Desktop.
Save dennisgove/b623a0aa56cff86052269eaae18a6272 to your computer and use it in GitHub Desktop.
git helper
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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment