开发者

git - manual replay of commits from git log to a different repository?

开发者 https://www.devze.com 2023-04-09 15:22 出处:网络
I have a repository with some c开发者_StackOverflow社区ommits. I want these commits replayed on a different copy of the repository in the exact same order, same commit messages, etc.

I have a repository with some c开发者_StackOverflow社区ommits. I want these commits replayed on a different copy of the repository in the exact same order, same commit messages, etc.

I'm hoping there is some combination of git-log, patch, and git-commit that can re-run the commits on the new repository.


You can add the other repository as a remote and fetch all changes. That way you will have the exact same commits in the same order, same hashes. I don't understand why you would want to go the route of format-patch + am. git bundle might also be an option for you.

0

精彩评论

暂无评论...
验证码 换一张
取 消