Created
December 22, 2015 04:32
-
-
Save cworks/fc87863f0bef964edce0 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# Example output: | |
# badb24d | Fri Mar 20 14:27:51 2015 | [cworks] | little clean up | |
numLines="20" | |
if [[ $1 =~ '^[0-9]+$' ]] ; then | |
$numLines = $1 | |
fi | |
git --no-pager log -n $numLines --pretty=format:'%h | %ad | [%an] | %s%d' --date=local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment