AFAIK you can't give su a password on the command line. But you can use sudo, add the permitted user into /etc/sudoers1/etc/sudoers with no password, so you can run your command as sudo -u webside-user-name 'cd /live/website && git fetch && git checkout master'
.