【发布时间】:2016-03-02 05:09:39
【问题描述】:
所以,我想创建一个仅包含对 file1、file2 和 file3 的更改(即功能更新)的拉取请求。
我使用的工作流程:
git clone https://github.com/eghm/project.git project-eghm-clean
cd project-eghm-clean
git remote add upstream https://github.com/forkeduser/project.git
git fetch upstream
git merge upstream/master
git push
git branch featurebranch
git checkout featurebranch
#edit files: file1, file2, file3
git add file1
git add file2
git add file3
git commit -m 'updates for feature'
git push --set-upstream origin featurebranch
然后在 github 上,我转到我的分叉存储库,选择 Branch: featurebranch,然后单击 Pull request。该请求包括我通过同步我的 fork 进行的合并:
以后如何避免这种情况?
【问题讨论】: