doing clean git pull-request to upstream

后端 未结 1 2006
礼貌的吻别
礼貌的吻别 2021-01-22 01:46

I\'ve cloned a repo (made sure to mark the original repo as upstream) and went the gitflow way: create a develop branch from which all new features are

1条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-22 02:00

    What I would do in this case is to create a new local feature branch from the HEAD of the branch you want to contribute to (which would be in the upstream repository). Then checkout this branch and git cherry-pick the commit range [1] that implements the feature you want to contribute (the commit range will come from your local developer branch).

    After that, you can publish your new feature branch and you can submit a clean pull-request from it.

    1. How to cherry-pick multiple commits

    0 讨论(0)
提交回复
热议问题