kkamara/ghbbupdater

:computer: (29-Aug-2023) 兼容 Windows, MacOS 和 Linux。

dev-main 2024-09-20 22:40 UTC

This package is not auto-updated.

Last update: 2024-09-23 02:33:43 UTC


README

MainClass.png

github-to-bitbucket-backup-repo-updater

💻 (29-Aug-2023) 兼容 Windows, MacOS 和 Linux。

快速入门

git clone https://github.com/kkamara/ghbbupdater
cd ghbbupdater
# Update config.json in your ghbbupdater directory.
composer i
composer start

安装

如果你使用 Docker,请确保你已经安装了 DockerDocker Compose

使用你的 GitHub 和 Bitbucket 远程仓库 URL 更新 config.json

{
  "repos": {
    "kelvinkamara.com": {
      "github": {
        "origin": "https://github.com/kkamara/kelvinkamara.com",
        "branch": "develop"
      },
      "bitbucket": {
        "origin": "git@bitbucket.org:kkamara2/kelvinkamara.com",
        "branch": "develop"
      }
    }
  }
}
git clone https://github.com/kkamara/ghbbupdater
cd ghbbupdater
# composer install
composer i

使用方法

# php src/MainClass.php
composer start

使用 Linux 和 Docker?

make start # build & run your script
make stop  # stop your docker container

使用 Windows 和 Docker?

.\ps\run.ps1 start # build & run your script
.\ps\run.ps1 stop  # stop your docker container

其他

查看使用 NodeJS 制作的 Github to Bitbucket Backup Repo Updater

查看 PHP ReactJS 模板.

查看 ReactJS 模板.

查看 PHP 抓取器.

查看 NodeJS ReactJS 模板.

PHP Docker 骨架.

Python Docker 骨架.

贡献

欢迎提交拉取请求。对于主要更改,请先提交一个问题来讨论你想要进行哪些更改。

请确保根据需要更新测试。

许可证

BSD