删除部分提交历史 - git

时间:2021-01-04 10:29:38

标签: git github

我已经克隆了一些模板仓库并开始用这个模板开发我自己的项目,问题是模板所有者的所有历史提交仍然在我的项目提交历史中可见。

例如,现在我的提交历史如下:

some_commit

I committed 11 minutes ago
 
some_commit

I committed 14 minutes ago

Commits on Dec 19, 2020
v2.0.1

@someowner
someowner committed 16 days ago

@someowner
someowner committed 16 days ago

@someowner
someowner committed 16 days ago

Commits on Sep 26, 2020
v1.3.1 (#2564) …

@owner2
@owner3
@owner4
3 people committed on Sep 26, 2020

我想要以某种方式合并所有所有者提交并将我的提交显示为起点,如下所示:

some_commit

I committed 11 minutes ago
 
some_commit

I committed 14 minutes ago

Commits on Dec 19, 2020
v2.0.1

Starting point commit

I committed on Dec 19, 2020


我看到过一些关于这个问题的帖子,但由于某种原因它影响了我当前的代码。

0 个答案:

没有答案