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.
Push multiple repositories
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
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
tool — Aug 1, 2022