• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

gitomatic: 这是一个用来监控 Git 仓库的工具,并自动拉取和推送变更内容 ...

原作者: [db:作者] 来自: Gitee 收藏 邀请

git-o-matic

A tool to monitor git repositories and automatically pull & push changes

Installation

Packages & Binaries

From Source

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.gitcd gitomaticgo build

Usage

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.txt2019/08/03 00:16:49 Adding file to work-tree: hello_world.txt2019/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.txt2019/08/03 00:17:07 Removing file from work-tree: hello_world.txt2019/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 "[email protected]" <path>

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap