我认为标题很好地描述了我的问题:我想安排 git push
。更具体地说,我想知道我该怎么做
- 告诉
git
在指定时间进行推送 - 告诉 OS 在指定的时间执行
git push
而无需重新验证 (最好是,其他push
尝试需要身份验证。)
我在 linux (Ubuntu 13.04) 上使用 bash 编写脚本。
最佳答案
git 中没有任何内容包括:
- 安排(由 Ubuntu with cron jobs 提供)
- 身份验证:这取决于远程端的监听器类型(https、ssh、git 等)。
根据你的远程 url,你可以,例如:
- 使用专用的公共(public)/私有(private) ssh key 。
- 使用带有 https url 的加密凭据(用户名/密码)(如“Configure Git clients, like GitHub for Windows, to not ask for authentication”)
关于linux - git --- 如何在 linux 上安排 `git push`?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20189056/