Created
March 20, 2014 17:28
-
-
Save ecasilla/9669241 to your computer and use it in GitHub Desktop.
git-hist
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
## | |
# Creates an alias called "git hist" that outputs a nicely formatted git log. | |
# Usage is just like "git log" | |
# Examples: | |
# git hist | |
# git hist -5 | |
# git hist <branch_name> | |
# git hist <tag_name> -10 | |
## | |
git config --global alias.hist "log --pretty=format:'%C(yellow)[%ad]%C(reset) %C(green)[%h]%C(reset) | %C(red)%s %C(bold red){{%an}}%C(reset) %C(blue)%d%C(reset)' --graph --date=short" |
Thank you, is amazing :)
$ git hist
git: 'hist' is not a git command. See 'git --help'.
The most similar command is
bisect
$ git hist git: 'hist' is not a git command. See 'git --help'.
The most similar command is bisect
You have to copy the very last line and enter that into your terminal and hit enter. Then you can use git hist.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nice, thank you