Skip to content

BlackCatTB/gitmulti

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

gitmulti

gitmulti is a lightweight CLI utility written in C++ that helps you easily manage multiple git remote push targets β€” for example, pushing to both a personal GitHub repo and a university-hosted Git server at the same time.


✨ Features

  • Adds a secondary remote (e.g., university Git server) based on folder or project name.
  • Supports automatic push to both GitHub and a secondary remote.
  • Creates a default configuration on first launch.
  • Opens config in Notepad (on Windows) or offers to edit in nano (on Linux).
  • Smart detection of existing remotes to avoid duplication.
  • Windows installer with optional MinGW auto-setup.
  • Unix installation script included.

πŸ”§ Installation

Windows

Run the provided PowerShell script to:

  • Copy the binary to Program Files\gitmulti\
  • Add it to your system PATH
  • (Optionally) install MinGW for compiling

Linux/macOS

Use the provided shell script:

sudo ./install-unix.sh

This will install the binary to /usr/local/bin/gitmulti. And optionally install clang llvm for you on macos on request


πŸš€ Usage

From within any Git-tracked project folder:

gitmulti

You can also manually specify a custom remote URL:

gitmulti git@custom.git.server:user/project.git

πŸ›  Configuration

On first launch, a config file is created at:

  • Windows: C:\Users\<You>\.gitmulti_config
  • Unix: ~/.gitmulti_config

Example:

remote_name=uni
branch=main
default_url=git@uni.example.edu:user/

The actual project name is inferred from the current folder name.


πŸ“ License

See LICENSE for more info. MIT-licensed.


πŸ’‘ Contributing

Pull requests are welcome! Feel free to open an issue or suggestion if you have ideas or improvements.


πŸ™ Acknowledgements

Built by BlackCatTB with love and caffeine β˜•

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published