所以我知道我们可以使用以下方法将文件从其他分支签出到当前工作的分支中:
git checkout [someOtherBranch] [path/to/file]
我希望这样的事情是可能的:
git checkout [someOtherBranch] [path/to/file] [path/we/want/to/copy/to]
这可能吗?
您可以对文件的内容进行分类,然后使用标准的shell重定向将其放置在所需的位置。
git show [someOtherBranch]:path/to/file > newpath/to/file
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句