我想删除所有提交历史记录,但保持代码处于当前状态,因为在我的提交历史记录中,有太多未使用的提交.
我该怎么做?
有没有git命令可以做到这一点?
git filter-branch ?
git rebase ?
...
Run Code Online (Sandbox Code Playgroud)
我的代码托管在github.com上.
We have an in-house tool that can group together multiple repositories - a bit like git submodules, but works with other repository types - CVS, hg, etc.
It currently uses a single 'meta' repository to store information about all our repositories - dev branches, release tags, etc. But I'm wondering if it's possible to distribute this and put the information into the repositories themselves?
My first thought for a git repository is to use a branch called, say, 'metadata' which …