Skip to content

Latest commit

 

History

History
65 lines (49 loc) · 1.85 KB

README.md

File metadata and controls

65 lines (49 loc) · 1.85 KB

autogit

Build Status

Don't you hate having to navigate to every single git repository in your projects folder and update them all by hand?

autogit, a small CLI tool built with rust, aims to solve this! Simply run autogit in the root projects folder (or wherever you have your git repos), and it will take a look at each repo and update it if possible.

Please note that for now, git needs to be installed on your machine. Also, be careful when using the tool, especially with the --force flag.

Usage

autogit 0.1.0
Finn K <[email protected]>
Update all git repositories that are located in subfolders

USAGE:
    autogit [FLAGS] [OPTIONS]

FLAGS:
    -f, --force      Force resetting and updating of currently checked out branches
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -d, --depth <depth>    How deep to check for git repositories [default: 3]

Installation

curl -LSfs https://japaric.github.io/trust/install.sh | \
sh -s -- --git fyndalf/autogit

Build from source

git clone [email protected]:fyndalf/autogit.git
cargo build --release

For development,

cargo fmt
cargo clippy

is also encouraged.

Dependencies

To Dos

  • Add some tests
  • Use git2 for fetching and pulling instead of bash-ed git commands
  • Handle network errors and inform user