linuxShortcuts/SSH/deployFromGit.ssh

3 lines
163 B
Bash
Executable File

#!/bin/sh
ssh -A -p 2222 username@MY_IP_ADDRESS -t "cd myApplicationFolder; git fetch --all; git checkout --force production; git pull origin production --force"