简体   繁体   English

Git Interactive Rebase显示来自master分支的提交

[英]Git Interactive Rebase Shows commits from master branch

I am trying to squash a few commits from my branch before merging a pull request. 在合并拉取请求之前,我尝试从分支压缩一些提交。

When doing git log I can scroll down to the commits I want to squash (14 commits back). 在执行git log我可以向下滚动到我想要压榨的提交(向后提交14个)。

Doing git rebase -i HEAD~14 shows my comments and also commits made onto master, moving back the commits I want to squash 进行git rebase -i HEAD~14显示我的注释以及提交到master上的提交,然后移回我想要压缩的提交

简而言之,这是正常情况,因为您从master结帐,所以看到以前的历史记录已提交。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM