ケース
昔branchAをdevelopから作成した
developブランチが他のブランチをマージまたはリベースで更新された。
branchAをdevelopにリベースしたい場合
いわゆる
* 639d8ax - (origin/develop, develop) authorA / commit message
* 4e18fdx - authorA / commit message
* a64267x - (origin/branchA, branchA) authorA / commit message
を
* 4e18fdx - authorA / commit message
* a64267x - (origin/branchA, branchA) authorA / commit message
* 639d8ax - (origin/develop, develop) authorA / commit message
にしたい(developブランチからbranchAが作成されているようにしたい)
git sw branchA
git rebase --onto origin/develop origin/develop branchA
git push origin branchA --force
補足
$ git log --no-merges --pretty=format:'%C(green)%h %C(reset)-%C(red bold)%d %C(blue)%an %C(reset)/ %C(reset)%s / %ad' --graph develop branchA
でgit treeを見られる