Skip to content

fyndalf/autogit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 <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]

Installation

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

Build from source

git clone git@github.com: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

About

A small CLI tool to automatically update all git repos in your projects folder

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published