This Rust application automates the process of adding, committing, and pushing changes to a Git repository. It simplifies the workflow by handling these tasks automatically, allowing users to focus on their code changes.
- gat - Git Automation
- Features
- Prerequisites
- Installation
- Usage
- Customizing Branch Name
- Upcoming Features
- Simplified Workflow: Automates the Git commands (
git add -A
,git commit -m
, andgit push origin main
) to streamline the process. - Error Handling: Provides informative error messages if any Git command fails, making it easy to identify and fix issues.
- Customizable Branch: Allows configuration of the target branch for pushing changes (default:
main
).
- Rust: Make sure you have Rust installed on your system.
-
Clone the Repository:
git clone https://github.com/fewrux/gat.git
-
Navigate to the Project Directory:
cd gat
-
Build in release mode:
cargo build --release
-
Install the application:
cargo install --path .
Provide your commit message as a command-line argument:
gat "Your commit message here"
Replace "Your commit message here" with your actual commit message.
By default, the application pushes changes to the main branch. If you want to push changes to a different branch, modify the GIT_BRANCH constant in the main.rs file.
const GIT_BRANCH: &str = "main";
Replace "main" with the name of your desired branch.
- Branch customization through command-line argument