本文介绍了git filter-branch重复提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在按照的方式重写git存储库的作者历史记录,但是我的原始结构从
I was rewriting my git repository's author history like explained here, however my original structure turned from
D (user 2) <-- master
|
C (user 2) E (user 1) <-- branch 1
| |
+-------------------------+
|
B (user 1)
|
A (user 1)
进入
D (user 1) <-- master G (user 2, original/refs/heads/master)
| |
C (user 1) F (user 2) E (user 1) <-- branch 1
| | |
+-------------------------+-------------------------+
|
B (user 1)
|
A (user 1)
所以问题是,如何摆脱F和G? 原始的/ refs / heads / master
似乎不是分支,但我也不完全确定它是什么。
So the question is, how can I get rid of F and G altogether? original/refs/heads/master
does not appear to be a branch, but I am also not entirely sure what it is.
推荐答案
解决方案:
git update-ref -d refs/original/refs/heads/master
这篇关于git filter-branch重复提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!