Last active
December 14, 2015 21:59
-
-
Save rdebeasi/5155522 to your computer and use it in GitHub Desktop.
Simple git sync script - pull, accept default merge commit message, and then push.
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
#!/bin/sh | |
# For even easier syncing, put the file in ~/bin and alias this script to gs: | |
# alias gs='gsync.sh' | |
# If any step fails, abort the script. | |
set -e | |
echo "Pulling..." | |
git pull --no-edit | |
echo "Pushing..." | |
git push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment