push-all-remotes
v1.1.14
Published
Push to multiple remote repositories at once
Readme
简体中文 | English
Installation and Configuration
- install package:
npm install -D push-all-remotes- add script in
package.json:
{
"scripts": {
"push:dev": "push-all-remotes -b develop -async",
"push": "push-all-remotes"
}
}ensure you have configured other remote repositories:
git remote
# output:
# origin
# other_remoteUsage
npm run push:dev
# git push origin develop & git push other_remote developor
npm run push # default branch is `develop`
# git push origin develop & git push other_remote develop
or
npm run push -- -b master -async
# git push origin master & git push other_remote masterParameter Descriptions
| Parameter | Description |
| --- | --- |
| --branch <branch name> | Specify the target branch, default is develop. --branch can be replaced with -b |
| -async | Whether to push asynchronously, the default synchronization push may have mixed logs but clear result indicators |
