mgit is a lightweight C-based CLI tool with an interactive TUI (Terminal User Interface) designed to automate and streamline daily Git workflows.
mgit <url> [name]: Clones a remote repository directly by passing its GitHub URL.mgit push [msg]: Automatesgit add .,git commit -m "[msg]"(default message:"Auto push"), andgit pushon your active branch.mgit show: Launches an interactive TUI history inspector. Allows navigating commits, inspecting metadata, performing aSwitch(git checkout), or executing aRestauration(git reset --hard).mgit update: Automatically fetches and builds the latest release from GitHub.mgit uninstall: Cleanly removes the executable and cleans up configuration entries in.bashrcand.zshrc.
Run the one-line installer:
curl -sSL https://raw.githubusercontent.com/Mrdolls/mgit/master/install.sh | bashOr build manually from source:
git clone git@github.com:Mrdolls/mgit.git
cd mgit
make
make install# Clone directly by passing the GitHub URL
mgit git@github.com:Mrdolls/mgit.git
# Clone into a custom directory name
mgit git@github.com:Mrdolls/mgit.git my_custom_dir# Push with default commit message "Auto push"
mgit push
# Push with custom commit message
mgit push "Refactor user authentication module"mgit showIn the TUI:
- Up / Down: Navigate commit history.
- S: Checkout selected commit (
git checkout <hash>). - R: Perform hard reset (
git reset --hard <hash>). Requires explicit confirmation. - Q / ESC: Exit TUI.
Safety Notice: Executing a Restauration (
git reset --hard) will permanently delete uncommitted working tree changes. Always review your changes before confirming.
# Update mgit to the latest version
mgit update
# Uninstall mgit
mgit uninstallCopyright © 2026 Mrdolls. All rights reserved.
This is a personal project. Unauthorized copying, modification, or redistribution of the source code without prior permission is strictly prohibited. Feedback and suggestions via GitHub Issues are welcome!