[英]git filter-branch duplicated commits
I was rewriting my git repository's author history like explained here , however my original structure turned from 我正在像这里解释的那样重写git存储库的作者历史记录,但是我的原始结构从
D (user 2) <-- master
|
C (user 2) E (user 1) <-- branch 1
| |
+-------------------------+
|
B (user 1)
|
A (user 1)
into 进入
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)
So the question is, how can I get rid of F and G altogether? 所以问题是,如何才能完全摆脱F和G? original/refs/heads/master
does not appear to be a branch, but I am also not entirely sure what it is. original/refs/heads/master
似乎不是一个分支,但是我也不完全确定它是什么。
解决:
git update-ref -d refs/original/refs/heads/master
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.