{"id":25000511,"url":"https://github.com/jader/greenbox","last_synced_at":"2025-04-12T08:52:24.240Z","repository":{"id":37658797,"uuid":"189559775","full_name":"Jader/GreenBox","owner":"Jader","description":" :game_die: 娱乐项目，使用 Crontab 定时提交 Commits。点亮绿格子；对就是绿","archived":false,"fork":false,"pushed_at":"2023-09-27T07:58:30.000Z","size":1466,"stargazers_count":94,"open_issues_count":0,"forks_count":20,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T08:52:19.048Z","etag":null,"topics":["commits","crontab","git","gitpush","greenbox","push","shell"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jader.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-31T08:41:04.000Z","updated_at":"2025-01-22T03:02:27.000Z","dependencies_parsed_at":"2025-02-04T19:35:41.864Z","dependency_job_id":"00f8beb4-f718-4e6d-b39a-a33223887fe3","html_url":"https://github.com/Jader/GreenBox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jader%2FGreenBox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jader%2FGreenBox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jader%2FGreenBox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jader%2FGreenBox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jader","download_url":"https://codeload.github.com/Jader/GreenBox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248543883,"owners_count":21121838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["commits","crontab","git","gitpush","greenbox","push","shell"],"created_at":"2025-02-04T19:35:18.130Z","updated_at":"2025-04-12T08:52:24.207Z","avatar_url":"https://github.com/Jader.png","language":"Shell","readme":"# GreenBox\n\n[![License](https://img.shields.io/packagist/l/inhere/console.svg)](LICENSE)\n[![Language](https://img.shields.io/badge/language-shell-green.svg)](README.md)\n\n :game_die: 娱乐项目，使用 Crontab 定时提交 Commits。点亮绿格子；对就是绿\n \n## use \n\n1、Fork Project\n\n2、Clone 刚刚 Fork 产生的项目\n\n3、配置 Deploy keys 或设置 git 使其能在服务端正常push\n\n4、配置 Crontab，这里配置了8小时执行一次，可以自行调整执行频率，项目路径也可以自行调整。还有需要注意的是 init.sh 需要执行权限\n\n    0 */8 * * * /bin/bash /root/GreenBox/init.sh \u003e/dev/null 2\u003e\u00261\n    \n5、push 这步其实就只是验证是否推送正常\n\n### 补上之前的提交记录\n\n比如，想要修改时间段位2019-01-01~2019-01-31，那么需要修改系统时间为2019-01-31，（不同系统修改时间不一致，具体可以针对性修改）脚本如下：\n\n    timedatectl set-time '2019-01-31 23:00:00'\n    \n修改完执行\n    \n    screen -d -m sh loop.sh 31\n    \n## 效果\n\n![](https://cdn.jsdelivr.net/gh/jader/resource/images/2021/202203281629220.png)\n\n\n \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjader%2Fgreenbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjader%2Fgreenbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjader%2Fgreenbox/lists"}