auto_deploy.sh 156 B

12345678910
  1. #!/bin/bash
  2. path=YOUR_DEPLOY_DIR
  3. cd $path
  4. # Save local changes
  5. git stash
  6. # Auto deploy by using hard reset
  7. git fetch --all
  8. git reset --hard origin/master