Seemlessly jump between repos from the command line.
- node 6.x.x or newer
- bash 3 or newer
zsh support coming soon...
npm i -g bitcar
bitcar --setup
Setup will drop a few dotfiles in ~/.bitcar
and it will append a few lines to your ~/.bash_profile
.
Note: You MUST use the command name you chose during setup. Only use the bitcar
command itself for setup.
IMPORTANT: Now, start a new terminal session.
In the examples below, it is assumed you have set your bitcar command to bit
. If you've chosen a different command name, adjust accordingly.
bit {searchTerm}
bit --open {searchTerm}
bit -o {searchTerm}
bit --edit {searchTerm}
bit -e {searchTerm}
bit --refresh
bit -r
This is done automatically the first time you try and use bitcar, but you can also manual refresh the cache when needed.
The bit
command without any searchTerm
will drop you into the root bitcar workspace.
For --open
and --edit
, the searchTerm
argument is optional. If no searchTerm
is given, then bitcar will attempt to open the current directory's repo.
If you'd like to use bitcar with your private repos, you'll need to setup a
personal access token on your github
account. Please ensure you've set the
correct scope for this token. The repo
scope should be fully enabled.
WARNING: Experimental features are named so for a reason! These are currently under active development and may or may not be part of future releases. Use at your own risk.
bit --clone-all {searchTerm}
This will clone ALL repos which match the searchTerm
. If searchTerm
is omitted it will clone ALL repos in your local cache. You will be prompted to confirm your intention.
bit --sync-existing
This will add any existing repos in your bitcar workspace to your cache if they are not already there. Run this after each --refresh
. This is particularly useful if you are using bitcar to manage your GOPATH.
bit --force-latest {searchTerm}
This feature will likely be removed in the near future. It will clone ALL repos matching the searchTerm
if they do not already exist on your local machine. If any given repo matching the searchTerm
already exists on your local machine it will be cleaned and hard reset to origin/master.
Apache 2.0