Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added git commands

...

wiki with detailed info here

Merging a pull request

Git commands:

Code Block
titleMerge pull request
# Get the exact same commits from the pull-request (the commit hashes must not change)
git fetch origin pull/${prId}/head:pr/${prId}
 
# Commit it without fast-forwarding. Type the commit message as detailed below.
git merge --no-ff --log pr/${prId}


# Finally, sign the merge commit.
git commit --amend -s --allow-empty-message -m ''

An optional helper script with detailed usage and help can be found here.

Scenario 2: Merging a pull request to a release branch

wiki with detailed info here

 

Code Block
titleForward merge
# Make sure you're on the branch you want to merge into
git checkout ${branch}

# Merge to the next branch and type the commit message as described below.
git merge --no-ff --log ${branch_to_merge}
 

An optional helper script with detailed usage and help can be found here.

More info on this wiki page.

...