如果我将另一个工作分支拉到自己的分支,然后git rebase并删除它们的提交,那么当我们俩合并时会引起问题吗?

问题描述

这就是逻辑流程:

git checkout {My branch}
git pull origin {Other branch}
git add {my files}
git commit -m "commit message here"
git rebase -i HEAD~2
and here I erase the commits from my coworkers branch that I do not need

git push origin {my branch} --force-with-lease

因此,我的拉取请求仅包含我的更改,以及我从我的同事分支需要的特定更改。我只想放心,当我们合并合并拉取请求时,我不会“擦除”他的任何代码。

谢谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)