Skip to content

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.

Notifications You must be signed in to change notification settings

SallesCosta/gPush

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gPush

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.

Installation

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

Basic Usage

The basic usage of gPush is as follows:

gPush [flags]

Flags

  • -s, --settings: Open the settings menu. In the settings menu, you can set the original and secondary repositories.

Commands

  • settings: This command is used to push or set the original and secondary repositories.

Settings

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.

Behavior

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.

Building from Source

If you prefer to build the source code of gPush, follow the steps below:

  1. First, clone the repository to your local machine:
git clone https://github.com/sallescosta/gPush.git

Contributing

Contributions are welcome! Please feel free to submit a pull request.

License

gPush is licensed under the MIT license. See the LICENSE file for more details.

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages