Skip to content

Instantly share code, notes, and snippets.

@Streek
Last active September 23, 2015 21:25
Show Gist options
  • Save Streek/810a313d6180d35db896 to your computer and use it in GitHub Desktop.
Save Streek/810a313d6180d35db896 to your computer and use it in GitHub Desktop.
Zsh shell for a lazy fast git process. Include a second value (any value) to push to heroku after the gitpush.
fastgit () {
print "Adding changes and commiting to current head..."
git add .
git commit -a -m "$1"
print "Pushing..."
git push
if [ -z "$2" ];
then
print "Finishing up..."
else
print "Pushing to heroku..."
git push heroku master
print "Finishing up..."
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment