Skip to content

Instantly share code, notes, and snippets.

@itsthatguy
Created April 18, 2012 20:41
Show Gist options
  • Save itsthatguy/2416430 to your computer and use it in GitHub Desktop.
Save itsthatguy/2416430 to your computer and use it in GitHub Desktop.
commit add push / commit add push heroku
function gap() {
if [ $# -eq 0 ]; then
echo Error: Please add a commit message
else
git add .
git commit -am "$*"
git push
fi
}
function gaph() {
if [ $# -eq 0 ]; then
echo Error: Please add a commit message
else
gap $*
git push heroku master
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment