The equivalent operation in Git is documented at: Backport changes using Git
Example 1: Forward-port from 8.x to trunk
Say you commit a fix to a stable branch (ex.: 8x), and you want to merge that commit to trunk (ex.: future 9x)
In this example, we'll merge the commit in branches/8.x (revision 39486) to trunk.
- Checkout trunk -> get code
- From the trunk directory (you may have to do 'cd trunk')
Merge revision from branches/8.x to the current checkout (which happens to be trunk)svn merge -c 39486 ^/branches/8.x
- Commit
svn commit -m "[merge/r39486] minor text corrections" youreditedtikifile.php
Example 2: Backport from 15.x to 14.x
- Checkout or Update 14.x (using
svn up
) - From the 14.x directory
Merge revision from branches/15.x to the current revision in 14.xsvn merge -c 57822 ^/branches/15.x
- Commit
svn commit -m "[bp/r57822] the original commit message" youreditedtikifile.php
Example 3: Backport from trunk to 19.x
- Checkout or Update 19.x (using
svn up
) - From the 19.x directory
Merge revision from trunk to 19.xsvn merge -c 69060 ^/trunk
- Commit
svn commit -m "[bp/r69060] the original commit message" youreditedtikifile.php
Related:
Other pages related to merging:
12 pages found for title search 'merg'
- Semi-automatic merging period
- Merging branches in Git
- Merge Tiki Spreadsheet into Tiki Trackers
- Merge language improvements
- Merge Files
- Merge categories on dev.tiki.org
- Merge a commit from trunk
- merge
- Mass operations to do after the Semi-automatic merging period
- Mail Merge
- How to Submit a Merge Request
- Guidelines for Merge Request reviewers
Alias:
Merge a commit to trunk