代码拉取完成,页面将自动刷新
A tool to monitor git repositories and automatically pull & push changes
Make sure you have a working Go environment (Go 1.11 or higher is required). See the install instructions.
Compiling gitomatic is easy, simply run:
git clone https://github.com/muesli/gitomatic.git
cd gitomatic
go build
Monitor a repository for changes and automatically pull & push changes:
gitomatic <path>
2019/08/03 00:16:48 Checking repository: /tmp/gitomatic-test/
2019/08/03 00:16:48 Pulling changes...
2019/08/03 00:16:49 New file detected: hello_world.txt
2019/08/03 00:16:49 Adding file to work-tree: hello_world.txt
2019/08/03 00:16:49 Creating commit: Add hello_world.txt.
2019/08/03 00:16:49 Pushing changes...
2019/08/03 00:16:53 Sleeping until next check in 10s...
2019/08/03 00:17:03 Checking repository: /tmp/gitomatic-test/
2019/08/03 00:17:03 Pulling changes...
2019/08/03 00:17:07 Deleted file detected: hello_world.txt
2019/08/03 00:17:07 Removing file from work-tree: hello_world.txt
2019/08/03 00:17:07 Creating commit: Remove hello_world.txt.
2019/08/03 00:17:07 Pushing changes...
Auth methods:
gitomatic -privkey ~/.ssh/id_rsa <path>
gitomatic -username "someone" -password "mypass" <path>
If you want to pull new changes but don't create commits (or vice versa):
gitomatic -pull=true -push=false <path>
You can control how often gitomatic checks for changes:
gitomatic -interval 30m <path>
Change the commit author's name and email:
gitomatic -author "John Doe" -email "some@mail.tld" <path>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型