Git Sync Remote Branch Automatically by Webhook
How to make your local repository always sync with GitHub repository? The answer is webhook.
When the repo received a push event, GitHub will send a POST request to the webhook URL with details of any subscribed events. What we need to do is to implement a webhook (on local side) which performs git pull to keep sync with remote.