1

I have created one new branch X
Then I merge this branch with local master and push local master to origin
Then I do more changes on branch X

I would like to push these changes to origin but on origin, I would like that only previous commit message get appeared i.e. i would like merge new changes to last commit on origin.

Is it possible?

4

1 回答 1

0

请参阅与“如何恢复以前推送的提交?”相关的其他问题。

由于您推送了提交,因此您想要执行的操作将更改远程分支历史记录,并在其他用户拉取origin/master分支时干扰他们。

除非您有非常充分的理由从 的历史记录中删除该提交,否则只需将您的其他更改推送到当前分支origin之上。origin/master

于 2013-04-26T08:48:32.443 回答