Tuesday, February 03, 2015

Cron and Git Pull

Assuming you're using SSH keys for authentication, you should be able setup a simple cron job with syntax similar to this and get scheduled pulls happening.

*/30 * * * * cd /var/www/html/repos/myprojectname && git pull >> /dev/null

This e-mail and all attachments ("e-mail") is private and confidential.  If you receive the e-mail in error, let us know by reply e-mail, delete it from your system and destroy all copies. The e-mail is the property and confidential information of Reckon Limited, or one of its related companies. Reckon Limited does not warrant that the information in the e-mail is error or omission free. This e-mail is not a quotation or proposal and no contractual obligations shall arise.

No comments:

A little about Me

My photo
My name is Mitch Beaumont and I've been a technology professional since 1999. I began my career working as a desk-side support engineer for a medical devices company in a small town in the middle of England (Ashby De La Zouch). I then joined IBM Global Services where I began specialising in customer projects which were based on and around Citrix technologies. Following a couple of very enjoyable years with IBM I relocated to London to work as a system operations engineer for a large law firm where I responsible for the day to day operations and development of the firms global Citrix infrastructure. In 2006 I was offered a position in Sydney, Australia. Since then I've had the privilege of working for and with a number of companies in various technology roles including as a Solutions Architect and Technical team leader.