Yishen Chen
Yishen Chen

Reputation: 589

Auto sync with a github repo

Is there anyway I can set my machine to automatically pull down the repo every time the repo in github is committed?

Upvotes: 2

Views: 3551

Answers (2)

iltempo
iltempo

Reputation: 16012

You can use a crontab entry for that. Working with commit hooks triggered from GitHub requires your host being reachable directly from the internet.

Fast forward pulls into your checked out repository only works if you don't change or commit anything locally. Otherwise you have to reset changes.

Upvotes: 1

sedden
sedden

Reputation: 91

If it is for syncing documents, try Sparkleshare.

Upvotes: 0

Related Questions