28 releases
Uses new Rust 2024
| new 0.5.14 | Mar 3, 2026 |
|---|---|
| 0.5.11 | Jan 21, 2026 |
| 0.5.9 | Dec 28, 2025 |
| 0.5.7 | Oct 14, 2025 |
| 0.3.3 | Mar 29, 2025 |
#544 in Development tools
17KB
244 lines
gtl
gtlis a Git-based tool designed to simplify the management of multiple remote repositories. It extends Git's functionality by providing one-click initialization and pushing to multiple remote repositories, making it especially useful for developers who need to maintain multiple remote repositories simultaneously.
Features
- Multi-remote repository management: Supports configuring multiple remote repositories for a single local repository.
- One-click remote repository initialization: Allows you to initialize and configure multiple remote repositories in one command.
- One-click push to multiple remote repositories: You can push code to all configured remote repositories with a single command, saving time and effort.
- Git command extensions: Adds convenient operations to Git, improving work efficiency.
Installation
Install gtl via cargo:
cargo install gtl
Usage
Configuration file
Path: /home/.git_helper/config.json
{
"D:\\code\\gtl": [
{ "name": "gitee", "url": "git@gitee.com:eastspire/gtl.git" },
{ "name": "origin", "url": "git@github.com:eastspire/gtl.git" }
]
}
Initialize multiple remote repositories
Assuming you already have a local Git repository and want to link it to multiple remote repositories, use the following command:
gtl init
One-click push to all remote repositories
After configuring multiple remote repositories, use the following command to push code to all configured remote repositories:
gtl push
Git add & commit & push
gtl acp
Publish to Crates.io & Git add & commit & push
gtl pacp
Version
gtl -v
gtl version
gtl --version
Help
gtl help
Appreciate
If you find gtl helpful, feel free to donate.
WeChat Pay
Alipay
Virtual Currency Pay
| Virtual Currency | Virtual Currency Address |
|---|---|
| BTC | 3QndxCJTf3mEniTgyRRQ1jcNTJajm9qSCy |
| ETH | 0x8EB3794f67897ED397584d3a1248a79e0B8e97A6 |
| BSC | 0x8EB3794f67897ED397584d3a1248a79e0B8e97A6 |
License
This project is licensed under the MIT License. For more details, please refer to the license file.
Contribution
Contributions are welcome! Please submit issues or create pull requests.
Contact
If you have any questions, please contact the author: root@ltpp.vip.
Dependencies
~1.7–3MB
~56K SLoC