How to Git Pull from Outside Working Directory Posted on 27 October 2016 by Kriangkrai Chaonithi This is most useful when you want automatic git pull, eg. cron crontab. The old way: sh -c "cd /path/to/working/directory && git pull" The new way: git -C "/path/to/working/directory" pull Kriangkrai Chaonithi A computer engineer scientist who loves knowledge sharing. CTO & Co-founder at Credit OK Related