Git: How to sync multiple topic branches that emerged from master with new master

This question already has an answer here:

  • Git: How to rebase many branches (with the same base commit) at once?

    3 answers

  • How should I use git in this scenario
  • “git push” to Gerrit with a tracking branch
  • git push one branch back to original remote branch
  • Gerrit - annotate patch-sets
  • Remove saved credentials from TortoiseGit
  • How to track more than one remote with a given branch using Git?
  • new git user using netbeans support with REJECTED_NONFASTFORWARD error
  • “git fetch” does not work
  • Return to previous uncommitted state in git
  • gitlab Peer certificate cannot be authenticated with known CA certificates
  • Git - info on tracking branch
  • ssh: connect to host heroku port 22: Connection refused
  • One Solution collect form web for “Git: How to sync multiple topic branches that emerged from master with new master”

    I think the answer @DavidM linked to is not applicable to your situation, because it shows how to rebase a number of branches at once, and your topic branches are already on the remote, so you can’t rebase them at will.

    I don’t think you’ll do any better than to simply merge master back in to each topic branch. That will bring the “hotfix” onto all the topic branches, and create new merge commits (so the history will show what you did). If you don’t like the merge commits, just cherry-pick the “hotfix” onto each topic branch instead.

    Git Baby is a git and github fan, let's start git clone.