English 中文(简体)
基特历史和重新基础问题[非公开]
原标题:Git History and Rebase issue [closed]
Closed. This question needs to be more focused. It is not currently accepting answers.

想要改进这个问题吗? 更新问题,使其只关注一个问题

Closed 10 years ago.

我对本地的回购做出了承诺,然后我将其推向了来源,后来我修正了承诺,并试图推动承诺,但我有一个错误,说我需要从原地拉开,我做了这个错误,发生了一场冲突,我修好了它,将其换成了本地的和远程的回购。

enter image description here The commit I made named: An early version of the ImportImageModel

我怎样才能重新定义历史 来纠正这些不必要的行为呢?

最佳回答

互动性反弹 应该这样做。 它允许许多事情做, 其中包括消除承诺。

问题回答

在你的 HEAD 类型

git 重新基础 -i HEAD~ 20

互动编辑将会被激发起来。

您可以操纵您的承诺将看起来如何 。 例如, 删除行承诺, 挤压到一个任务中, 查看文本的指令 。

省省吧,省省吧

然后,你们的目标结果就是你们正在寻找的目标结果。





相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签