> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/code-repository/use-harness-code/pull-requests/change-target-branch.md).

# Change target branch

Changing the Target Branch of an Open Pull Request

Harness Code supports updating the target branch of an open pull request.

To change the target branch:

1. **Click the Edit Icon**
   * In the pull request view, click the edit icon next to the PR title (the same icon used to edit the PR title).

<figure><img src="https://942965363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoTP6ysjQCQlt5GlFHRfs%2Fuploads%2Fgit-blob-047a22c3820bcbcefa2d13c69077308ef4af2a5e%2Fchange-target-branch1.png?alt=media" alt=""><figcaption></figcaption></figure>

2. **Select the New Target Branch**
   * A dropdown appears with available branches. Select the branch you want to set as the new target.

<figure><img src="https://942965363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoTP6ysjQCQlt5GlFHRfs%2Fuploads%2Fgit-blob-71b4808c47b2b571962f642e4fd11ad365ebf8b2%2Fchange-target-branch2.png?alt=media" alt=""><figcaption></figcaption></figure>

3. **Save the Changes**
   * Click the **Save** button to update the target branch for the pull request.

Once saved, the pull request will now target the newly selected branch.

<figure><img src="https://942965363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoTP6ysjQCQlt5GlFHRfs%2Fuploads%2Fgit-blob-112e3a79b406fc40f3609a28fd4ad81b9831a288%2Fchange-target-branch3.png?alt=media" alt=""><figcaption></figcaption></figure>

{% @harness-feedback/feedback module="code-repository" pagePath="code-repository/use-harness-code/pull-requests/change-target-branch" %}
