git-plumbing

Remove refs/original/heads/master from git repo after filter-branch --tree-filter?

懵懂的女人 提交于 2019-11-27 02:33:23
I had the same question as asked here: New git repository in root directory to subsume an exist repository in a sub-directory I followed this answer here: New git repository in root directory to subsume an exist repository in a sub-directory Now, gitk --all shows two histories: one culminating in the current master , and one named original/refs/heads/master . I don't know what this second history is, or how to remove it from the repo. I don't need two histories in my repository. How do I get rid of it? To reproduce yourself: mkdir -p project-root/path/to/module cd project-root/path/to/module

Remove refs/original/heads/master from git repo after filter-branch --tree-filter?

岁酱吖の 提交于 2019-11-26 10:06:17
问题 I had the same question as asked here: New git repository in root directory to subsume an exist repository in a sub-directory I followed this answer here: New git repository in root directory to subsume an exist repository in a sub-directory Now, gitk --all shows two histories: one culminating in the current master , and one named original/refs/heads/master . I don\'t know what this second history is, or how to remove it from the repo. I don\'t need two histories in my repository. How do I