Last active
September 23, 2015 21:25
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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