相关疑难解决方法(0)

如何删除github中的所有提交历史记录?

我想删除所有提交历史记录,但保持代码处于当前状态,因为在我的提交历史记录中,有太多未使用的提交.

我该怎么做?

有没有git命令可以做到这一点?

git filter-branch ?
git rebase ?
... 
Run Code Online (Sandbox Code Playgroud)

我的代码托管在github.com上.

git github

255
推荐指数
2
解决办法
17万
查看次数

存储与 git 存储库相关的元数据的地方?

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 …

git metadata

6
推荐指数
0
解决办法
1452
查看次数

标签 统计

git ×2

github ×1

metadata ×1