merge - 合并两个已经在请求请求中的提交

标签 merge github commit git-pull pull-request

我只在我的主分支上工作(很傻,我知道!),我将提交推送到我的仓库中,然后对上游打开了一个拉取请求。

有人要我修复此提交,所以我完成了该工作,并通过pull request进行了另一次提交,但是现在有2个commit的pull request-如何将这些提交合并在一起?

最佳答案

如果我正确理解(不确定),您要查找的单词是“南瓜”:

Squash my last X commits together using Git

关于merge - 合并两个已经在请求请求中的提交,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9207857/

相关文章:

python - Pandas : merge on column of ByteArray

Java-使用交替字符合并两个字符串,同时保留运行

python - 合并词典与子词典

git - 撤消(而不是恢复)历史本地提交?

eclipse - SVN 提交错误 "Commit can only commit to a single repository at a time."

typescript ,合并对象类型?

git push origin master 导致 fatal error

windows - 如何从 GitHub for windows 隐藏已删除的文件

git - GitHub 中的项目与存储库

git - 防止在 git 存储库中的 master 分支上直接提交并仅接受 merge ?