git-push-url
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

download img

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 <git_repo_url>)

  • multiple urls below same remote (similarly: git remote set-url origin <git_repo_url>)

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

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

Package Sidebar

Install

npm i git-push-url

Weekly Downloads

1

Version

1.0.6

License

ISC

Unpacked Size

4.98 kB

Total Files

4

Last publish

Collaborators

  • weykon