Create Automatic Routine of Git Pull
Hi!
I have a folder that is in: /home2/user/folder, and it is a private github repository. How can I make cPanel do a git pull every 5 minutes? I tried to create a pull.sh file and in it by something like:
[QUOTE]#!/bin/bash
git pull
Running as user's cronjob [QUOTE]sh /home2/user/folder/pull.sh
But it didn't work. Have some way to do it? I only want to do the git pull (get changes from github private repository), not push.
Running as user's cronjob [QUOTE]sh /home2/user/folder/pull.sh
But it didn't work. Have some way to do it? I only want to do the git pull (get changes from github private repository), not push.
Please sign in to leave a comment.
Comments
0 comments