Skip to content

keep a branch updated #22307

Answered by Wabri
aster94 asked this question in New to GitHub
Discussion options

You must be logged in to vote

Hi @aster94,

You can merge the master into the branch or cherry-pick the commits that you want in these branches.

Merge solution

From github web interface you can click in the “new pull request” button and choose to merge master into one of your active branch.

When you merge the master into the other branch remember that all the changes made on master will be made even on that branch.

Cherry-pick solution

You can find all the documentation of cherry-pick here: git-cherry-pick

Get the commit ID of the commit you want on the branch.

You can get the commit id by the web UI:

Or with comman…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants