是否有可能从另一个git存储库中挑选一个提交?

独自空忆成欢 提交于 2020-08-06 10:17:07

问题:

I'm working with a git repository that needs a commit from another git repository that knows nothing of the first. 我正在使用一个git存储库,需要从另一个不知道第一个存储库的git存储库提交。

Typically I would cherry-pick using the HEAD@{x} in the reflog, but because this .git knows nothing of this reflog entry (different physical directory), how can I cherry-pick this, or can I? 通常我会在reflog中使用HEAD@{x}进行挑选,但是因为这个.git对这个reflog条目(不同的物理目录)一无所知,我怎么能选择这个,或者我可以吗?

I'm using git-svn . 我正在使用git-svn My first branch is using git-svn of the trunk of a Subversion repo, and the next branch is using git-svn on a Subversion branch. 我的第一个分支是使用Subversion repo trunkgit-svn ,而下一个分支是在Subversion分支上使用git-svn


解决方案:

参考一: https://stackoom.com/question/LTxG/是否有可能从另一个git存储库中挑选一个提交
参考二: https://oldbug.net/q/LTxG/Is-it-possible-to-cherry-pick-a-commit-from-another-git-repository
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!