Search code examples
linuxgitschedulergit-push

git --- How to schedule `git push` on linux?


I think the title describes my problem well: I want to schedule git push. To be more specific, I'd like to know how I can either

  • tell git to make push at a specified time
  • tell OS to execute git push at a specified time without re-authentication (preferably, in such a way that the other attempts to push shall require authentication.).

I'm on linux (Ubuntu 13.04) and thus scripting with bash will be fine.


Solution

  • There is nothing in git which includes:

    • scheduling (this is provided by Ubuntu with cron jobs)
    • authentication: it depends on the kind of listener (https, ssh, git, ...) you have on the remote side.

    Depending on your remote url, you can, for instance: