Created
July 20, 2013 18:11
-
-
Save mikesmullin/6045946 to your computer and use it in GitHub Desktop.
Git Shove
This file contains hidden or 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
#!/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