Created
January 21, 2019 19:22
-
-
Save dennisgove/b623a0aa56cff86052269eaae18a6272 to your computer and use it in GitHub Desktop.
git helper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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