GitButler ⧓

Commands

but pr

Commands for creating and managing pull requests on a forge.

Commands for creating and managing pull requests on a forge.

Commands for creating and managing pull requests on a forge.

If you are authenticated with a forge using but config forge auth, you can use the but pr commands to create pull requests (or merge requests) on the remote repository for your branches.

Running but pr without a subcommand defaults to but pr new, which will prompt you to select a branch to create a PR for.

Usage: but pr <COMMAND>

Subcommands

but pr new

Create a new pull request for a branch. If no branch is specified, you will be prompted to select one. If there is only one branch without a PR, you will be asked to confirm

Usage: but pr new [BRANCH] [OPTIONS]

Arguments:

  • <BRANCH> — The branch to create a PR for

Options:

  • -f, --with-force — Force push even if it's not fast-forward (defaults to true) (default: true)
  • -s, --skip-force-push-protection — Skip force push protection checks
  • -r, --run-hooks — Run pre-push hooks (defaults to true) (default: true)
  • -t, --default — Use the default content for the PR title and description, skipping any prompts. If the branch contains only a single commit, the commit message will be used (default: false)

but pr template

Configure the template to use for PR descriptions. This will list all available templates found in the repository and allow you to select one

Usage: but pr template [TEMPLATE_PATH]

Arguments:

  • <TEMPLATE_PATH> — Path to the PR template file within the repository

Last updated on

On this page

Edit on GitHubGive us feedback