https://github.com/jader/greenbox
:game_die: 娱乐项目,使用 Crontab 定时提交 Commits。点亮绿格子;对就是绿
https://github.com/jader/greenbox
commits crontab git gitpush greenbox push shell
Last synced: 3 months ago
JSON representation
:game_die: 娱乐项目,使用 Crontab 定时提交 Commits。点亮绿格子;对就是绿
- Host: GitHub
- URL: https://github.com/jader/greenbox
- Owner: Jader
- License: mit
- Created: 2019-05-31T08:41:04.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-09-27T07:58:30.000Z (almost 2 years ago)
- Last Synced: 2025-04-12T08:52:19.048Z (3 months ago)
- Topics: commits, crontab, git, gitpush, greenbox, push, shell
- Language: Shell
- Size: 1.4 MB
- Stars: 94
- Watchers: 1
- Forks: 20
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GreenBox
[](LICENSE)
[](README.md):game_die: 娱乐项目,使用 Crontab 定时提交 Commits。点亮绿格子;对就是绿
## use1、Fork Project
2、Clone 刚刚 Fork 产生的项目
3、配置 Deploy keys 或设置 git 使其能在服务端正常push
4、配置 Crontab,这里配置了8小时执行一次,可以自行调整执行频率,项目路径也可以自行调整。还有需要注意的是 init.sh 需要执行权限
0 */8 * * * /bin/bash /root/GreenBox/init.sh >/dev/null 2>&1
5、push 这步其实就只是验证是否推送正常### 补上之前的提交记录
比如,想要修改时间段位2019-01-01~2019-01-31,那么需要修改系统时间为2019-01-31,(不同系统修改时间不一致,具体可以针对性修改)脚本如下:
timedatectl set-time '2019-01-31 23:00:00'
修改完执行
screen -d -m sh loop.sh 31
## 效果