12 releases (6 breaking)
0.7.3 | Feb 17, 2024 |
---|---|
0.7.2 | Jan 27, 2024 |
0.6.0 | Jan 14, 2024 |
0.5.0 | Jan 13, 2024 |
0.1.0 | May 24, 2023 |
#2585 in Command line utilities
123 downloads per month
26KB
651 lines
lgit-rs
lgit-rs
is a powerful, opinionated command-line interface (CLI) tool, designed to simplify the management of git
repositories. It provides a set of commands that streamline common git operations, making your workflow more efficient.
Features
- Autosquash: Automatically squash all fixup commits in the current branch.
- Branch: Quickly create a new branch from a freshly pulled BASE branch.
- Checkout: Checkout a branch by name, or by selecting from a list of all branches.
- DeleteBranches: Safely delete all branches for which remotes are gone. Use with caution!
- Fixup: Commit as a fixup, simplifying your commit history.
- Rebase: Rebase the current branch on top of freshly pulled BASE branch with a single command.
Requirements
Git
lgit-rs
requires git to be installed on your system. You can check if git is installed by running the following
command:
git --version
Installation
Archives of precompiled binaries for lgit are available for Windows, macOS and Linux.
Using Cargo
Installing lgit-rs
through Cargo is the easiest way to get started. You can install it by running the following
command:
cargo install lgit
Building from source
You can also build lgit-rs
from source by running the following command:
cargo install --path .
Usage
To get a comprehensive list of all available commands and options, you can use the --help
flag:
lgit --help
Each command has a dedicated help page that can be accessed by running lgit <command> --help
. For example:
lgit branch --help
Development
lgit-rs
is developed using the Rust programming language and
the Cargo package manager.
You can clone the repository and run the project locally using the following commands:
git clone https://github.com/luladjiev/lgit-rs.git
cd lgit-rs
cargo run
Contributing
We welcome contributions from the community! Feel free to submit a Pull Request or open an issue if you find any bugs or have suggestions for improvements.
License
lgit-rs
is licensed under the MIT License, a permissive license that lets
you do anything with the code with proper attribution and without warranty.
Dependencies
~3–10MB
~99K SLoC