Skip to content

Instantly share code, notes, and snippets.

@trentbrooks
Created May 20, 2013 00:39
Show Gist options
  • Save trentbrooks/5609732 to your computer and use it in GitHub Desktop.
Save trentbrooks/5609732 to your computer and use it in GitHub Desktop.
Lazy GitHub shortcut: copy file into your home directory next to '.bash_history' (if .bash_profile already exists, just copy/paste the function below). Launch terminal, cd into your local repo, then type- gitit "some commit". Note, function assumes your working with a 'develop' branch, if not change 'develop' to whatever your branch is, eg. 'mas…
function gitit {
git pull origin develop
git add -A
git commit -am "$1"
git push origin develop
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment