git-find

License: CC0-1.0 Build Status Crates.io Documentation

A tool (cli & lib) to find local git repositories.

* Why * Usage Cli * Install * Via rust toolchain * Via pre-build binaries * Related and similar * Informations * Actions (broadcast) * TODO

Why

Because I need a tool to list and to reorg my local git repositories.

Usage Cli

```sh $> git-find -h

git-find 0.2.0 davidB A tool (cli & lib) to find local git repositories.

USAGE: git-find [FLAGS] [OPTIONS] [DIR]

FLAGS: -h, --help Prints help information -V, --version Prints version information -v, --verbose Verbose mode (-v, -vv, -vvv, etc.) print on stderr

OPTIONS: -t, --tmpl format of the output print on stdout [default: {{ .path.file_name }} {{ .path.full }}]

ARGS:

root directory of the search [default: .] ```

```sh git find -t 'cd {{ .path.full }}; echo "\n\n---------------------------------------------\n$PWD"; git status' | sh ````

Template format

The template format is a subset of golang text/template.

Possibles values

!! Experimental: values could change with future release !!

Samples

tmpl {{ .path.file_name }}\t{{ .path.full }}

```tmpl {{ .path.filename }}\t{{ .path.full }}\t{{with .remotes.origin}} {{ .name }} {{.urlfull}} {{.urlhost}} {{.urlpath}} {{end}} ````

tmpl cd {{ .path.full }}; echo "\n\n---------------------------------------------\n$PWD"; git fetch

Install

Via rust toolchain

sh cargo install git-find

Via pre-build binaries

!! Experimental !!

sh tar -xzvf git-find_0.2.2-linux.tar.gz chmod a+x git-find mv git-find $HOME/bin rm git-find_0.2.2-linux.tar.gz

Related and similar

Some tools to help management of multi repository But not the same features, else no need to re-do.

Informations

Actions (broadcast)

TODO