Skip to content

Instantly share code, notes, and snippets.

@evturn
Last active August 29, 2015 14:26
Show Gist options
  • Save evturn/02dea458c780adf11fd5 to your computer and use it in GitHub Desktop.
Save evturn/02dea458c780adf11fd5 to your computer and use it in GitHub Desktop.
Push to Remote Droplet

Pushing repo to droplet

Droplet console

From root:

$ git clone git@github:USER/REPO.git --bare

Local console

$ cd REPO/.get
$ cd hooks
$ cat > post-receive
$ git remote add production root@DROPLET-IP-ADDRESS:REPO/.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment