auto_deploy.sh 171 B

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