Skip to content

Instantly share code, notes, and snippets.

@iamnoah
Created May 4, 2011 15:20
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 iamnoah/955398 to your computer and use it in GitHub Desktop.
Save iamnoah/955398 to your computer and use it in GitHub Desktop.
SERVER=yourdevserver.com
CODE_DIR=/var/www/html/
git diff | ssh $SERVER -C "cd $CODE_DIR; patch -p1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment