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
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