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