-
-
Save titovanton/8b9350d27a0527c19e9c308a587b9292 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 | |
# Put that script in to the /usr/local/bin/gl - without .sh | |
# Then give +x permissions | |
if [ -z $1 ] | |
then | |
PARAM=-10 | |
else | |
PARAM=$1 | |
fi | |
git log $PARAM --pretty='format:%Cred %h %Cgreen %an %Creset %cr %Cgreen %s%Creset' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment