跳转到主要内容

一个用于备份/镜像GitHub仓库的脚本。

项目描述

gitbackhub

GitHub Workflow Status (branch) PyPI

一个用于备份/镜像GitHub仓库的脚本。

配置

在GitHub上获取具有repo范围的个人访问令牌

配置文件位于~/.config/gitbackhub/config.ini

[main]
user = GitHubUserName
access_token = AccessToken
directory = /path/to/target/directory

[user:GitHubUserName]
[user:AnotherGitHubUserName]

[org:GitHubOrgName]
[org:AnotherGitHubOrgName]

[repo:SomeGitHubUser/some-repo]
[repo:YetAnotherGitHubUserName/another-repo]
[repo:YetAnotherGitHubOrgName/yet-another-repo]

确保文件只有你自己可以读取,因为它包含你的GitHub令牌。

帮助

$ gitbackhub --help
Usage: gitbackhub [OPTIONS]

Options:
    --access-token TEXT
    --user TEXT
    --directory DIRECTORY  The data directory to clone to
    --config PATH
    --help                 Show this message and exit.

项目详情


下载文件

下载适用于您的平台文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分布

gitbackhub-0.2.0.tar.gz (5.8 kB 查看哈希值)

上传时间

构建分布

gitbackhub-0.2.0-py3-none-any.whl (4.7 kB 查看哈希值)

上传时间 Python 3

由以下支持