社区所有版块导航
Python
python开源   Django   Python   DjangoApp   pycharm  
DATA
docker   Elasticsearch  
aigc
aigc   chatgpt  
WEB开发
linux   MongoDB   Redis   DATABASE   NGINX   其他Web框架   web工具   zookeeper   tornado   NoSql   Bootstrap   js   peewee   Git   bottle   IE   MQ   Jquery  
机器学习
机器学习算法  
Python88.com
反馈   公告   社区推广  
产品
短视频  
印度
印度  
私信  •  关注

Gaël J

Gaël J 最近创建的主题
Gaël J 最近回复了

我将替换第5步( git pull )与:

# Retrieve work done on other branches without applying it, especially it updates your origin/main
git fetch
# Rebase your work on top of origin/main
git rebase origin/main

使用 pull 通常 将远程数据拉入同一分支。

我会重新设定基准 feature2 main 就在那之后 feature1 已经被挤压和合并。

比如:

git checkout feature2
git rebase --onto main C feature2

这将从 C (独家)到 特点2 (含)在 主要的 .

但我不确定它是否更简单。一个缺点是你会被 主要的 在生成的分支中(但我猜这就是您最终想要的)。

个人意见:如果南瓜被其他人用作参考,首先不要使用南瓜。