Skip to content

Instantly share code, notes, and snippets.

@rdebeasi
Last active December 14, 2015 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rdebeasi/5155522 to your computer and use it in GitHub Desktop.
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.
#!/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