Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ews-im/hpr

Open more actions menu

Repository files navigation

ḫpr

镜像任意 git 仓库到 Gitlab 的同步工具,具有定时更新的功能。

独特优势

  • 支持 API 接口,可用于远程控制不仅限于终端使用
  • 支持终端命令控制,方便临时使用
  • 定时更新镜像的仓库,时间可调,告别不靠谱的 crontab
  • 几乎支持所有的 git 托管的仓库
  • 使用可独立部署的 Gitlab 作为镜像平台。

开始使用

Docker

$ docker pull icyleafcn/hpr
$ curl -fsSL -o hpr.yml https://raw.githubusercontent.com/icyleaf/hpr/master/config/hpr.example.yml
$ docker run --name hpr --restart=unless-stopped -d \
             -p 8848:8848 \
             -v `pwd`/hpr.yml:/app/config/hpr.yml \
             icyleafcn/hpr

本地部署

先安装依赖 ruby 2.3+、redis 和 sqlite-lib(如果是 Linux 环境),后复制 config/hpr.example.ymlconfig/hpr.yml 修改对应的参数。

$ bundle install
$ bundle exec guard start

具体配置和说明请移步本教程

如果还有哪里遗漏或不足的请提交申请

贡献你的力量

本项目由 Ruby 语言编写而成,欢迎贡献你的力量!

  1. Fork 本项目
  2. 创建你的新特性/修复分支 (git checkout -b my-new-feature)
  3. 提交你的代码 (git commit -am 'Add some feature')
  4. 推送分支到服务器 (git push origin my-new-feature)
  5. 创建一个新的 PR

项目维护者

关于项目名和图标

本来就是个镜像和更新的项目脑海中就联想来屎壳郎这个名字,但这个名字英文有长又无法凸现特色,正好在维基百科看到了牛哄哄的变体圣甲虫

About

Mirror ans sync any git repository to gitlab | 镜像任意 git 仓库到 gitlab 的同步工具,具有定时更新的功能

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.