Skip to content

Instantly share code, notes, and snippets.

@peterc
Created February 25, 2009 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save peterc/70202 to your computer and use it in GitHub Desktop.
Save peterc/70202 to your computer and use it in GitHub Desktop.
#!/bin/bash
REMOTE_HOST='whatever'
USERNAME='whatever'
git push origin master && ssh ${REMOTE_HOST} "cd /home/${USERNAME}/www/rails;git pull origin master;chown -R ${USERNAME}:${USERNAME} *"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment