HTTPS SSH

repoex

Bash function for fast switching between repositories by discovering and indexing all nested repositories inside a directory. Also providing simple history functionality to jump back to last visited repository.

Usage

repoex [options]

options:
   -h        show help message.
   -b        jump back to last repository folder 
             stored in history.
   -d <path> directory to explore (current directory 
             when not passed).
   -r        refreshes Index File for current directory or 
             directory specified via -d argument.

Sample

$ repoex -d ~/Documents/Local\ Git\ Repositories`
[01] Repo1
[02] Repo2
[03] Repo3
[qQ] quit
jump to [1..3|qQ]... 2


switching to [Repo2]
 > /c/Users/user/Documents/Local Git Repositories/Repo2

user@HOST ~/Documents/Local Git Repositories/Repo2 (develop)
$ repoex -d ~/Documents/Local\ Git\ Repositories`
[01] Repo1
[02] Repo2
[03] Repo3
[qQ] quit
jump to [1..3|qQ]... 3


switching to [Repo3]
 > /c/Users/user/Documents/Local Git Repositories/Repo3

user@HOST ~/Documents/Local Git Repositories/Repo3 (master)
$ repoex -b

switching to [Repo2]
 > /c/Users/user/Documents/Local Git Repositories/Repo2

user@HOST ~/Documents/Local Git Repositories/Repo2 (develop)
$