Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

A way to automate git pull on Raspberry Pi

I am hosting a discord bot on a Raspberry Pi. This is my first personal project and wanted to know if there was a way to automate git pull without having to remote in my device. That way I can continue to make the discord bot better without having to worry about updating it. Is there a tool that would be helpful for this task?

Thank you for your time.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You can look into cron jobs to run a task periodically (e.g. git pull).
This could look something like this:

*/15 * * * * git -C /home/me/gitprojectdir pull

(taken from Git auto-pull using cronjob)

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading