Skip to content

Instantly share code, notes, and snippets.

@pje
Forked from hannestyden/gist:3415541
Created August 21, 2012 13:44
Show Gist options
  • Save pje/3415611 to your computer and use it in GitHub Desktop.
Save pje/3415611 to your computer and use it in GitHub Desktop.
g: a function that will often save you at least two characters
function g() {
if [[ $# -eq 0 ]] ; then
git status
else
git $@
fi
}
@robb
Copy link

robb commented Sep 13, 2012

this should really be git status -sb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment