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,511
  • 28
  • 39
  • 51
Yosh
  • 2,512
  • 3
  • 24
  • 30

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,262,500
  • 529
  • 4,410
  • 5,250
1

you can schedule such jobs using cron.

00 07 * * * git push

will run git push command everyday at 7 AM.

0xc0de
  • 8,028
  • 5
  • 49
  • 75