Generating modified file list using git diff --name-only in order to put those file(s) using sftp
- set as executable
chmod +x sftpPush.sh
chmod +x deploy.sh
- go to your project directory
- execute deploy.sh ie. your deploy.sh file's is in your home directory
~/deploy.sh usr@domain.xxx:/path/to/target/s