Skip to content

Instantly share code, notes, and snippets.

@adison
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adison/eea8c608112e175e45d9 to your computer and use it in GitHub Desktop.
Save adison/eea8c608112e175e45d9 to your computer and use it in GitHub Desktop.
some useful bash alias for git
#!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