[问题] 请问 git remote rebase 问题

楼主: Samuel (I've got it!)   2016-03-08 18:37:48
标题杀人! remote 是无法 rebase 的
问题是这样的
专案在开发可能会因为开发某 feature
从 master 切 branch 出来
如果需要 master 上面的 update
如果是自己的话就还好 可以自己在 local git rebase
但是如果多人开发同一个 feature
会交互的 commit code 到 remote 上
在需要 update master code 的时候
这样的话就不能作 rebase
通常的作法会是 cherry-pick
恶心一点的话就会直接把 master merge into feature
会造成 git merge graph 相当的可怕
问题说到这边
也许有人会说
“为什么要从 master merge into feature?,这样不对啊”
“可能是 feature 切的不够细”
“可能是 commit 颗粒掌握不对”
...
会有一些类似这种 operation 上面的认知的问题
说这么多是想请问各位大大
以 git remote rebase(误) 作为纠结的起点
各位有什么解法吗?!
或是有什么 best practice 可以躲过这些问题?
我想要做到的就是“不影响他人的”remote rebase 作法 XD
各位有什么建议吗?

Links booklink

Contact Us: admin [ a t ] ucptt.com