← 返回命令列表

Linux command

gh-rs 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Sync all repos

gh rs sync

Sync specific org

gh rs sync --org [orgname]

Clone all repos

gh rs clone --org [orgname]

List repos to sync

gh rs list

说明

gh rs (repo-sync) is a GitHub CLI extension for bulk repository operations. It enables synchronizing and cloning multiple repositories from organizations or users in parallel. The extension is useful for maintaining local copies of many repositories, setting up development environments, or backing up organization code. It handles authentication and rate limiting automatically.

参数

sync
Synchronize repositories.
clone
Clone multiple repositories.
list
List repositories.
--org _ORGNAME_
Target organization.
--user _USERNAME_
Target user.
--concurrency _N_
Parallel operations.
--help
Display help information.

FAQ

What is the gh-rs command used for?

gh rs (repo-sync) is a GitHub CLI extension for bulk repository operations. It enables synchronizing and cloning multiple repositories from organizations or users in parallel. The extension is useful for maintaining local copies of many repositories, setting up development environments, or backing up organization code. It handles authentication and rate limiting automatically.

How do I run a basic gh-rs example?

Run `gh rs sync` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does sync do in gh-rs?

Synchronize repositories.