Skip to content

Running multiple "gh repo sync owner/cli-fork" commands to help sync all your forked GitHub repos

License

Notifications You must be signed in to change notification settings

hexh250786313/gh-repo-sync

Repository files navigation

中文说明

gh-repo-sync

A cli running multiple "gh repo sync owner/cli-fork" commands to help sync all your forked GitHub repos

About gh ( github-cli ): https://github.com/cli/cli

Required

Make sure you have github-cli installed and authenticated

Install

IT IS gh-repo-sync-cli, NOT gh-repo-sync!!! The gh-repo-sync is another package 🤷

npm install -g gh-repo-sync-cli

Usage

gh-repo-sync --help

There are two ways to pass all repos names to gh repo sync

via command line

gh-repo-sync owner/repo1 owner/repo2

via config file

Config in: ~/.config/gh-repo-sync/config.json

{
  "repos": [
    "owner/repo1",
    "owner/repo2"
  ]
}

Then run gh-repo-sync will sync all the forked repos

It will throw error when there are diverging changes

Screenshot

2022-05-25_20-26

License

MIT © hexh250786313

About

Running multiple "gh repo sync owner/cli-fork" commands to help sync all your forked GitHub repos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published