loki-cli-0.7.1 is not a library.
loki-cli A Git Productivity CLI
Git is a pretty great tool on it's own. After some time common patterns emerge. lk is here to make those patterns fast.
Install
-
First, install
cargoby visiting https://rustup.rs. -
Install with
cargo(📦 loki-cli ):cargo install loki-cli
Use
Get Help
loki-cli 0.5.0
Kyle W. Rader
A CLI for Git Productivity
USAGE:
lk.exe <SUBCOMMAND>
OPTIONS:
-h, --help Print help information
-V, --version Print version information
SUBCOMMANDS:
fetch Fetch with --prune deleting local branches pruned from the remote
help Print this message or the help of the given subcommand(s)
new Create a new branch from HEAD and push it to origin. Set a prefix for all new
branch names with the env var LOKI_NEW_PREFIX [aliases: n]
pull Pull with --prune deleting local branches pruned from the remote
push Push the current branch to origin with --set-upstream [aliases: p]
Commands
new
Alias: n
- Make creating a new branch easier to type by joining all given args with a dash (
-). - Automatically push and setup tracking to
origin. - Set a prefix to always prepend with the
LOKI_NEW_PREFIXenvironment variable.
Example
❯ lk new readme updates
Creates and pushes readme-updates to origin with --set-upstream. (The command git will tell you to run if you simply run git push after creating a new local branch.)
push
Alias: p
- Pushes the current branch to origin with
--set-upstream. -f|--forceflag uses--force-with-leaseunder the hood for better force push safety.- Only works if
HEADis on a branch (not in a dettached state).
pull
Alias: none (the alias p is for push)
- Run
git pull --pruneand remove any local branches that have also been pruned on the remote.
fetch
Alias: none
- Run
git fetch --pruneand remove any local branches that have also been pruned on the remote.