简体   繁体   中英

Moving Assets from one Repo to another, git commit history?

我只将一个应用程序仓库的一部分从一个移到另一个,但是想知道是否有可能像在github上的fork中那样保留提交历史记录。

It's possible. You can probably use git filter-branch . It's a powerful (but also fairly complicated) command. https://git-scm.com/docs/git-filter-branch

Exactly how to do it depends on exactly what you're trying to do (eg how the new repo's directory structure will look relative to the old one).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM