We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
博文置顶说明 一个可以同时运行多个 "gh repo sync owner/cli-fork" 命令的命令行工具, 以帮助同步所有 fork 的 GitHub 仓库
一个可以同时运行多个 "gh repo sync owner/cli-fork" 命令的命令行工具, 以帮助同步所有 fork 的 GitHub 仓库
确保环境中已经安装了 github-cli 并且已经登录了 github 帐号
注意是 gh-repo-sync-cli, 而不是 gh-repo-cli!!! 因为已经有另一个名为 gh-repo-sync 的库了 🤷♀
gh-repo-sync-cli
gh-repo-cli
npm install -g gh-repo-sync-cli
gh-repo-sync --help
该工具有两种方法来传递仓库名参数给 gh repo sync
gh repo sync
gh-repo-sync owner/repo1 owner/repo2
配置文件位置: ~/.config/gh-repo-sync/config.json
~/.config/gh-repo-sync/config.json
{ "repos": [ "owner/repo1", "owner/repo2" ] }
配置完后执行 gh-repo-sync 就会同步所有 repos 数组中的仓库
gh-repo-sync
repos
如果同步过程中有源仓库发生了变化需要进行 PR, 那么工具就会抛出错误
The text was updated successfully, but these errors were encountered:
No branches or pull requests
不要点开, 博客网站用的
关于
Required
确保环境中已经安装了 github-cli 并且已经登录了 github 帐号
安装
注意是
gh-repo-sync-cli
, 而不是gh-repo-cli
!!! 因为已经有另一个名为 gh-repo-sync 的库了 🤷♀使用
该工具有两种方法来传递仓库名参数给
gh repo sync
通过命令行
通过配置文件
配置文件位置:
~/.config/gh-repo-sync/config.json
配置完后执行
gh-repo-sync
就会同步所有repos
数组中的仓库如果同步过程中有源仓库发生了变化需要进行 PR, 那么工具就会抛出错误
截图
The text was updated successfully, but these errors were encountered: