linuxShortcuts/SSH/deployFromGit.ssh

3 lines
163 B
Plaintext
Raw Normal View History

#!/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"