gpt4 book ai didi

git - 如何为 git svn clone 选择 --prefix

转载 作者:太空狗 更新时间:2023-10-29 13:20:03 25 4
gpt4 key购买 nike

当我尝试 git-svn clone 时,我收到警告:

WARNING: --prefix is not given, defaulting to empty prefix.
This is probably not what you want! In order to stay compatible
with regular remote-tracking refs, provide a prefix like
--prefix=origin/ (remember the trailing slash), which will cause
the SVN-tracking refs to be placed at refs/remotes/origin/*.

--prefix 在 git book chapter on git-svn 中没有提到.各种网页推荐使用 --prefix ( tfnicoobjectparters ),但没有解释我应该怎么调用它。它只是一个任意名称,还是应该与 SVN 存储库中的某些内容匹配?

最佳答案

您应该将其命名为常规的 git 远程仓库,也就是说,假设 SVN 仓库是一个远程 git 仓库;你想给它起什么名字? --prefix=origin/ 就像警告说的那样是一个安全的选择,除非你想要一个不同的来源 Remote 。

关于git - 如何为 git svn clone 选择 --prefix,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31806817/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com