SyntaxFix
Write A Post
Hire A Developer
Questions
This might be a similar problem, but you can also simply chain you commands. eg
On one line
cd ~/Sites/yourdir/web;git pull origin master
Or via SSH.
ssh [email protected] -t "cd ~/Sites/thedir/web;git pull origin master"