Skip to main content

Pull Request

Generate a pull request.


The "pr" command generates a pull request by combining commit messages, a title, and the git diff between branches. Requires Git to be installed on the system. If a title is not provided, one will be generated.

otto pr [flags]


  -b, --base string     Base branch to create the pull request against
-h, --help help for pr
-p, --publish Create the pull request. Must have a remote named "origin"
-r, --remote string Remote for creating the pull request. Only works with GitHub. (default "origin")
-t, --title string Title of the pull request
-v, --verbose Verbose output


  • otto - Document your code with ease
Auto generated by spf13/cobra on 23-Apr-2023