gigi stands for git gizmo.
Note
gigi is a CLI implementing some opinionated commands to simplify my
day-to-day work with git and GitHub.
Warning
This software runs git and gh commands. Use it at your own risk.
- Clone this repo
- Run
cargo install --path .
OR run cargo install --git https://github.com/marcoieni/gigi
Run cargo run -- --help to see the help menu with all available commands.
Open a PR with the current changes. The PR title and branch name are automatically set from the commit message.
If there are any staged changes, only those are included in the PR.
If you have copilot installed, gigi will use it to generate a commit message,
that you can edit before creating the PR.
The squash subcommand squashes all the commits of the PR into one, rebasing the default branch and setting the PR title as the commit message.
The authors of the original commits are set as co-authors in the new commit message.
You can set an alias to recompile and run gigi from your local project.
With the following command you can gigi <command> in your projects, and
it will run the latest version of gigi in that directory.
alias gigi='RUST_BACKTRACE=1 cargo run --manifest-path ~/path/to/gigi/Cargo.toml --'
