> 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

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="/files/QWuOFvJFzbYpSfLj9EBo" 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="/files/Jw0Xz0w7lxT9JkJEiEuT" 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="/files/mqMSSipWCp71yWzI1Egh" alt=""><figcaption></figcaption></figure>
