Last active
August 29, 2015 14:27
-
-
Save adison/eea8c608112e175e45d9 to your computer and use it in GitHub Desktop.
some useful bash alias for git
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
#!bash | |
# command for pretty log in x days, ex, for logs within 180 days: gitlog 180 | |
gitlogfunction (){ | |
git log --since=$1.days --date='local' --pretty=format:'%an %ad %s'; | |
} | |
alias gitlog=gitlogfunction; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment