Skip to content

Instantly share code, notes, and snippets.

@egermano
Created January 22, 2013 16:12
Show Gist options
  • Select an option

  • Save egermano/4595905 to your computer and use it in GitHub Desktop.

Select an option

Save egermano/4595905 to your computer and use it in GitHub Desktop.
git deploy stage or in diferente branch than master
#!/bin/sh
export GIT_DIR=$(pwd)
cd /var/www/path/to/server/
git checkout -f master
git checkout -f developer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment