dhensby / githubsync
Sync forked github repos
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 0
Open Issues: 3
Type:project
Requires
- cache/filesystem-adapter: ^1.0
- knplabs/github-api: ^2.9
- nesbot/carbon: ^1.33
- php-http/guzzle6-adapter: ^1.1
- symfony/console: ^4.1
README
Sync your forked repositories with their upstream parents.
Installation
composer global require dhensby/githubsync
Usage
githubsync repository:update <organisation/username> [<repository>...]
Supply your GitHub username or organisation name and optionally the repositories you want to update (if none provided assume all forked repositories).
Options
Option | Behaviour |
---|---|
--add-missing |
Add any branches present in the upstream repo that aren't present in the fork |
--force |
Force any updates to branches when the branches have diverged |
--rewind |
Force any updates to branches when the change is a rewind |
--from-source |
Update from the root source repo rather than the parent; this only applies if your repo forked a fork of an upstream and will cause the root repo to be used as the source of commits |