Skip to content

Instantly share code, notes, and snippets.

@titovanton
Last active September 24, 2019 15:41
Show Gist options
  • Save titovanton/8b9350d27a0527c19e9c308a587b9292 to your computer and use it in GitHub Desktop.
Save titovanton/8b9350d27a0527c19e9c308a587b9292 to your computer and use it in GitHub Desktop.
#! /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