Created
December 22, 2017 02:16
-
-
Save cuongtransc/7c22a878ed830b8cddf6d6421fd49a9e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# | |
# Edit file ~/.gitconfig, add to git alias | |
# | |
# Download peco: https://github.com/peco/peco | |
# | |
[alias] | |
logp = "!git log --oneline $@ | peco" | |
showp = "!git show `git log --oneline | peco | cut -d' ' -f1`" | |
showpfile = "!git show --name-only `git log --oneline | peco | cut -d' ' -f1`" | |
resetp = "!git reset `git log --oneline | peco | cut -d' ' -f1`" | |
reset-reflogp = "!git reset `git reflog | peco | cut -d' ' -f1`" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment