Skip to main content

Make Git pull update automatically

Comments

5 comments

  • JIKOmetrix
    I think I'm on to something here. I test this at a terminal as the user: cd ${HOME}/repositories/IP-Lists; git fetch An it fetched the files from the remote git repositories placing them in the local. So I think I can make a crontab like this: cd ${HOME}/repositories/IP-Lists; git fetch or if I want no output emailed: cd ${HOME}/repositories/IP-Lists; git fetch > /dev/null 2>&1 Thanks for looking.
    0
  • cPRex Jurassic Moderator
    Hey there! That sounds like it should work, but you wouldn't want to use the "cd" command in cron as that usually doesn't work well.
    0
  • JIKOmetrix
    Hey there! That sounds like it should work, but you wouldn't want to use the "cd" command in cron as that usually doesn't work well.

    Thanks. Can you be more clear about the CD command. It works or does not work, what does does not work well mean?
    0
  • cPRex Jurassic Moderator
    In my experience, and others, it doesn't work. There's some more recent discussion about this here:
    0
  • JIKOmetrix
    Oooooooh, I understand now. :) Thanks.
    0

Please sign in to leave a comment.