Pull Request - Command Line Interface
pr-cli pick
)Quickly cherry-pick one or more commits from your current branch onto a new one and create a pull request for these commits.
Very useful when doing a quick bugfix/cleanup/change unrelated to your branch. Or when creating frequent, small commits.
pr-cli achieves this by creating a new worktree in a temporary directory, so that your main worktree is completely unaffected
It also has all the PR title/body features of pr-cli pr
pr-cli pick
(or pr-cli p
) in a git repositorypr-cli pr
)Create a GitHub pull request based on your current branch, like gh pr create
but better.
Install prerequisites:
ℹ️ Check if you already have these installed by running
deno --version
andgh --version
Install pr-cli:
deno install --name pr-cli --allow-run --allow-read --allow-env https://deno.land/x/prcli/main.ts
Install Gum:
pr-cli install-deps
ℹ️ you can also install Gum manually if you prefer: https://github.com/charmbracelet/gum#installation
To upgrade your installation to the latest version:
deno install --reload --force --name pr-cli --allow-run --allow-read --allow-env https://deno.land/x/prcli/main.ts
Enable auto-completion of pr-cli commands by running the command for your shell:
echo 'source <(pr-cli completions bash)' >> ~/.bashrc
echo 'source <(pr-cli completions zsh)' >> ~/.zshrc
echo 'source (pr-cli completions fish | psub)' >> ~/.config/fish/config.fish: