Skip to content
Create a gist now

Instantly share code, notes, and snippets.

@sudara /deploy forked from toolmantim/deploy

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
# Simple deployment script
# Requires access to to github repository, as well as a host defined in
# ~/.ssh/config like so:
# Host myhost
# User appuser
# Hostname hostname
# ForwardAgent yes
# On a Mac you might need to run 'ssh-add' at least once beforehand.
ssh myhost 'cd ~/app; git fetch; git reset --hard origin/master'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.