【问题标题】:Commit and push automatically on certain hour or date with Git使用 Git 在特定时间或日期自动提交和推送
【发布时间】:2016-01-04 20:29:06
【问题描述】:

是否可以使用 Git特定时间日期自动提交推送 /strong>?

我个人在Windows操作系统中使用客户端SourceTree

【问题讨论】:

  • 为什么要自动提交?本着 Git 的精神,提交是项目进展中有意义的步骤,而不仅仅是项目在某个任意时间的样子。

标签: git automation push commit atlassian-sourcetree


【解决方案1】:

你可以做一个cronjob

see e.g. here

为你做这些...

编辑

有关 cron 的 Windows 替代方案,请参阅 here

【讨论】:

  • 抱歉,我忘记指明我使用的是 Windows。您的回答在 Ubuntu、Linux 中将非常有用。
  • 编辑了我的帖子以考虑到这一点
  • 我可以阅读如何安排每 N 小时运行一次的任务,但我不太确定确切的命令是什么。
  • git commit -a -m "Automatic commit"; git push ?
  • 这是commitpush的命令,但它指的是Schtasks命令。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2016-07-06
  • 2021-05-31
  • 1970-01-01
  • 1970-01-01
  • 2014-02-02
  • 2012-07-24
相关资源
最近更新 更多