Skip to content

Instantly share code, notes, and snippets.

@charlesthomas
Created March 21, 2014 21:21
Show Gist options
  • Save charlesthomas/9696775 to your computer and use it in GitHub Desktop.
Save charlesthomas/9696775 to your computer and use it in GitHub Desktop.
gs: alone: do git show / with argument: do git status
function gs() {
if [ -z $1 ]; then
git status
else
git show $1
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment