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.
autogit 0.1.0
Finn K <fyndalf@users.noreply.github.com>
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]
curl -LSfs https://japaric.github.io/trust/install.sh | \
sh -s -- --git fyndalf/autogit
git clone git@github.com:fyndalf/autogit.git
cargo build --release
For development,
cargo fmt
cargo clippy
is also encouraged.
- Add some tests
- Use git2 for fetching and pulling instead of bash-ed git commands
- Handle network errors and inform user