gPush is a CLI tool written in Go, designed to manage and push to two different Git repositories simultaneously. It is useful when you have a project that is mirrored in two different repositories.
To install gPush, you need to have Go installed on your machine. Once Go is installed, you can download and install gPush using the go get
command:
go get github.com/sallescosta/gPush
The basic usage of gPush is as follows:
gPush [flags]
-s, --settings
: Open the settings menu. In the settings menu, you can set the original and secondary repositories.
settings
: This command is used to push or set the original and secondary repositories.
In the settings menu, you can set the original and secondary repositories. If the repositories are not set, the program will prompt you to set them.
When you run gPush without any flags, it will check if there are any uncommitted changes in your repositories. If there are, it will prompt you to commit them before running the program.
If the original repository is not found, the program will notify you and exit.
If the secondary repository is not found or is undefined, the program will notify you and open the settings menu for you to set it.
Once both repositories are set and there are no uncommitted changes, the program will display the original and secondary repositories and proceed to push to both of them.
If you prefer to build the source code of gPush, follow the steps below:
- First, clone the repository to your local machine:
git clone https://github.com/sallescosta/gPush.git
Contributions are welcome! Please feel free to submit a pull request.
gPush is licensed under the MIT license. See the LICENSE file for more details.