问题:
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 trunk
的git-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
来源:oschina
链接:https://my.oschina.net/stackoom/blog/4355005