我是github的新手。我希望为我的commit_file1提高pr1并为commit_file2提高pr2。如何在github中做到这一点?我为两个提交创建了不同的分支,但PR始终包含两个文件。
您需要(假设您没有任何工作在进行中):
将第一个分支重置为commit1
git switch branch1
git reset --hard commit1
git push --force -u origin branch1
然后将您的第二个分支重置为commit1和Cherry-pick commit 2之前
git switch branch2
git reset --hard commit1~
git cherry-pick commit2
git push --force -u origin branch2
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句