git town propose
git town propose [--(no)-auto-resolve] [(-b | --body) <text>] [(-f | --body-file) <path>] [--dry-run] [-h | --help] [-s | --stack] [(-t | --title) <text>] [-v | --verbose]
The propose command helps create a new pull request (also known as merge request) for the current feature branch. It opens your forge’s website to create a new proposal in your browser and pre-populates information like branch and source/target repository. It also syncs the branch to merge before opening the pull request in detached mode.
Proposing prototype and parked branches makes them feature branches.
You can create pull requests for repositories hosted on:
You can configure the browser which Git Town opens using the BROWSER environment variable.
Options
--auto-resolve
--no-auto-resolve
Disables automatic resolution of phantom merge conflicts.
-b <text>
--body <text>
Pre-populate the body of the pull request with the given text.
-f <path>
--body-file <path>
When called with the --body-file aka -f flag, it pre-populates the body of
the pull request with the content of the given file. The filename - reads the
body text from STDIN.
--dry-run
Use the --dry-run flag to test-drive this command. It prints the Git commands
that would be run but doesn’t execute them.
-h
--help
Display help for this command.
-s
--stack
The --stack aka -s parameter makes Git Town propose all branches in the
stack that the current branch belongs to.
-t <text>
--title <text>
When called with the --title <title> aka -t flag, the propose command
pre-populate the title of the pull request to the given text.
-v
--verbose
The --verbose aka -v flag prints all Git commands run under the hood to
determine the repository state.
Configuration
You can configure the forge type with the hosting-platform setting.
When using SSH identities, this command uses the hostname in the hosting-origin-hostname setting.