/rusty-git-puller

I have a lot of repos locally and I like to keep them up to date. So I made this. It just pulls every git file it can to a max depth in the directory you tell it to

Primary LanguageRustMIT LicenseMIT

Git Repo Updater

Contents
  1. Introduction
  2. Usage
  3. Explanation
  4. Building
  5. Contributing
  6. License

Introduction

This is a simple Rust CLI program that recursively updates all git repositories in a specified directory up to a specified depth.

Usage

cargo run <directory> <depth>

Replace with the directory you want to start searching from, and with the maximum depth you want to search.

For example, if you want to update all git repositories in ~/Projects up to a depth of 2 directories, you would run:

cargo run ~/Projects 2

Explanation

The program starts by reading all the directories in the specified directory. For each directory, it checks if a .git directory exists within it. If a .git directory exists, it runs the git pull command in that directory. This process is done recursively up to the specified depth.

Building

To build the program, you need to have Rust installed. You can download Rust from the official website.

Once you have Rust installed, you can build the program with:

cargo build --release

This will create an executable in the target/release directory.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

[RETURN TO TOP]