Skip to content

amanraghuvanshi/Git-Automation-RUST

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Git Automate - Simple Git Command Line Tool

Overview

A simple command line tool written in Rust. It automates the process of adding all files, committing changes, and pushing them to the remote repository. This tool is designed to streamline the Git workflow, making it faster and more convenient.

Usage

To use git-automate, follow these steps:

  1. Navigate to the root directory of your Git repository in the terminal.

  2. Run the following command:

git-automate

This command will execute the tool and perform the following operations:

  1. Add all files recursively to the Git repository.
  2. Commit all changes with a randomly generated commit message.
  3. Push the changes to the remote repository (origin main branch).

Installation

To build and install this, you'll need Rust and Cargo installed on your system. If you haven't already, you can install Rust by following the instructions on the official Rust website.

Once Rust is installed, you can proceed with the following steps:

  1. Clone the repository:
git clone https://github.com/akhilsharma90/git-automate.git
  1. Navigate to the project directory:
cd git-automate
  1. Build the project using Cargo:
cargo build --release
  1. Install the binary:
cargo install --path .

Dependencies

  • names: This dependency is used to generate random commit messages. You can find more information about this crate here.

  • std::os: This module is part of the Rust standard library and is used for interacting with the operating system. It is used in this project for handling process exit codes.

License

This project is released under the MIT License - see the LICENSE file for details.

About

A small script of automating the git workflow

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages