Skip to content

Instantly share code, notes, and snippets.

@benjiao
Created August 23, 2015 15:50
Show Gist options
  • Save benjiao/2c6636b146a6608f9329 to your computer and use it in GitHub Desktop.
Save benjiao/2c6636b146a6608f9329 to your computer and use it in GitHub Desktop.
Shell script to deploy an app from a git repository using a deploy key
#!/bin/bash
eval `ssh-agent -s`
ssh-add ~/.ssh/deploy-key
cd /sample/path/to/app
git pull origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment