Skip to content

Instantly share code, notes, and snippets.

@mikesmullin
Created July 20, 2013 18:11
Show Gist options
  • Save mikesmullin/6045946 to your computer and use it in GitHub Desktop.
Save mikesmullin/6045946 to your computer and use it in GitHub Desktop.
Git Shove
#!/bin/bash
#
# /usr/local/bin/git-shove
# example:
# git shove "#6: its easier when working alone--or with another very closely--to do smaller, more frequent commits"
#
git add -A &&
if [ $# -gt 0 ]
then
git commit -m "$*"
else
git commit -v
fi &&
git pull --rebase &&
git push;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment