Skip to content

tg pr create

Create a pull request from the current branch

Create a pull request from the current Git repository.

The current branch is the source branch. The origin remote and its default branch are the target. For a fork, set –repo, –source-repo, and –base.

Without title or body flags, tg opens $EDITOR. Write the title on the first line, leave the second line blank, and write the body below it.

tg pr create [flags]
-B, --base string Target branch. Defaults to origin's default branch. Required for forks.
-b, --body string Pull request body
-F, --body-file string Read pull request body from file
-H, --head string Source branch (default: current branch)
-h, --help help for create
-R, --repo string Target repository as handle/repo
--source-repo string Source repository as handle/repo
-t, --title string Pull request title
--account string Account handle or DID
--appview string Appview URL (default "https://bobbin.klbr.net")
--config string Config file (default: $XDG_CONFIG_HOME/tg/config.toml)
--json Print JSON output
  • tg pr - Work with pull requests