https://github.com/weykon/git-push-url
a cli as git tool to adding some remote url in Nodejs
https://github.com/weykon/git-push-url
cli git
Last synced: 5 months ago
JSON representation
a cli as git tool to adding some remote url in Nodejs
- Host: GitHub
- URL: https://github.com/weykon/git-push-url
- Owner: weykon
- Created: 2022-07-24T09:16:23.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-05T06:15:28.000Z (over 3 years ago)
- Last Synced: 2025-09-18T08:27:35.329Z (9 months ago)
- Topics: cli, git
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README

> this CLI change __"./.git/config"__ file content of remote url settings.
# Background
when we want to push multiple repo:
- multiple remote (the commonly used: git remote add origin )
- multiple urls below same remote (similarly: git remote set-url origin )
In "set-url" can't add urls, it just replace url.
The purpose of this tool is to simply add urls, and yes, it is that simple.
## Use For
Push multiple repositories
## Usage
```shell
npm i git-push-url -g
git-push-url add https://github.com/user/repo.git
#or
git-push-url remove https://github.com/user/repo.git
```
## Principle
> Changed the remote content in the __"./.git/config"__ file in the current directory, adding or removing the URL.
Welcome to contribute.
github: https://github.com/weykon/git-push-url