> For the complete documentation index, see [llms.txt](https://dev.cubrid.org/dev-process/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.cubrid.org/dev-process/dp-en/gh-guide/git-backport.md).

# Backport

A backport is to bring the features and fixes of a new version to a previous version. For example, if a bug which is found and fixed in CUBRID latest version, also occurs in CUBRID 10.2.1 and needs to be fixed, then backporting is performed.

In this case, from the Github tool's point of view, the commit which is merged in the develop branch is merged bacak to the release/10.2 branch. **Note that in the case of a feature or bug fix that needs to be merged in multiple versions, you must first merge the commit in the develop branch and then backport the commit to the release.** Qualified patches can be backported to previous versions by checking QA regression results therefore the damage to the stability of the previous version can be minimized. If the bug does not occur in develop, it will be merged only in release.

When proceeding the backport, refer to the following process: &#x20;

* If you want to merge a commit on several versions, you must first merge on the develop branch.
* Check whether the commit first merged in develop branch is stable.
* Applying git cherry-pick would makes the whole backporting easier.&#x20;

```
#git command example 
git checkout develop
git log // Find the commit id to backport
git checkout release/10.2
git cherry-pick <commit-id>
```

* When a conflict occurs, create a PR which contain 2 commits: one for backporting and one for fixing the conflict.&#x20;
* If a bug occurs during the backport process, fix it and write down the description of the bug and the fix in the JIRA comment.&#x20;

Note the following when creating a backport PR:

* When creating a PR, write the PR number merged in develop at the end of the PR title.
  * example)&#x20;
    * \[CBRD-OOOOO] Fix this issue: PR merged in develop#235&#x20;
    * \[CBRD-OOOOO] Fix this issue (#235): PR merged in release/10.2
* Also write down the number of the original PR as follows: You can see that the PR number after the backport is automatically created as a link on GitHub.

| <p><http://jira.cubrid.org/browse/CBRD-OOOOO><br></p><p>backport #235</p> |
| ------------------------------------------------------------------------- |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://dev.cubrid.org/dev-process/dp-en/gh-guide/git-backport.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
