10

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.

Infinite Recursion
  • 6,445
  • 28
  • 38
  • 51
Yosh
  • 2,274
  • 2
  • 23
  • 29

2 Answers2

4

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:

Community
  • 1
  • 1
VonC
  • 1,129,465
  • 480
  • 4,036
  • 4,755
1

you can schedule such jobs using cron.

00 07 * * * git push

will run git push command everyday at 7 AM.

0xc0de
  • 7,578
  • 5
  • 46
  • 73