【问题标题】:Unable to authenticate when creating upstream branch using git-svn使用 git-svn 创建上游分支时无法进行身份验证
【发布时间】:2017-04-28 09:29:01
【问题描述】:

我无法使用 git-svn 在 svn 服务器上创建分支,在 Windows 上使用 git-bash、cygwin 或 git 扩展程序使用 git svn branch <branchname> 命令。

我想要一些有关如何诊断和调试此问题的指导/建议。

git-bash 和 cygwin 上的输出:

$ git svn branch upstream-branch-name
Copying https://***redacted*** at r132578 to https://***redacted***/branches/upstream-branch-name...
Can't create session: Unable to connect to a repository at URL 'https://***redacted***': No more credentials or we tried too many times.
Authentication failed at C:\Program Files\Git\mingw64/libexec/git-core\git-svn line 1199.

有关信息,我在我的系统上安装了 cygwin 和 TortoiseSVN 作为 svn 提供程序。

EDIT1:此外,我可以在没有任何错误的情况下执行git svn rebase 和git svn dcommit

【问题讨论】:

  • 可以直接commit svn吗?最好是命令行。您可以尝试通过 --username 将您的 svn 用户名明确定义为 git-svn
  • 是的,我可以直接提交到 svn,我一直使用它作为临时解决方法

标签: windows cygwin git-svn git-bash git-extensions


【解决方案1】:

首先在 Cygwin 环境中检查您的 Git 版本。
我mentioned here Git 2.13+(2017 年 3 月)在身份验证问题上应该更强大。

为了测试,尝试(作为mentioned here)卸载TortoiseSVN,然后查看git svn branch 是否有效。

【讨论】:

    猜你喜欢
    • 2016-04-09
    • 2011-07-01
    • 2016-01-27
    • 2021-12-23
    • 1970-01-01
    • 2019-07-29
    • 2013-05-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多