我看到了question,但回答没有讨论保存在第一个存放处分立之前转移的档案的历史。
What I m interested is the following scenario: there is initially one repo, and some files have been moved around in this repo at various times due to refactoring. Now, we are splitting this initial repo by choosing a subset of the files from this repo to create another. If we perform filter-branch
with the --subdirectory-filter
argument, we can restrict the new repo to only the history relevant to the remaining files.
However, after some experimentation, this seems to destroy history in the files that were created prior to the last time the file was moved (i.e., git log --follow
no longer has any record of file renames to follow).
围绕这一点是否有任何办法,以便<代码>git blame和gitlog
在执行<条码>过滤器-branch条码>时,仍可跟踪文档的全部历史。 指挥,或以任何其他方式保存已转移或重新命名的档案的历史?