【问题标题】:git svn fetch - Unable to find .git directorygit svn fetch - 找不到 .git 目录
【发布时间】:2016-03-15 18:38:07
【问题描述】:

我已使用以下 git svn clone 命令将 SVN 存储库迁移到本地 Git 存储库

git svn clone <svn-repo>/<project> <git-repo-name>

现在我想在 SVN 存储库更改(新提交)时同步新的本地 Git 存储库。我使用以下命令从原始 SVN 存储库中获取任何新提交:

git svn fetch

但是执行上述命令后什么都没有获取。它显示为:

$ git svn fetch

Instaed 显示为:

$ git svn fetch
fatal: Not a git repository (or any of the parent directories): .git
Unable to find .git directory
at D:\Program Files\Git\mingw64/libexec/git-core\git-svn line 347.

【问题讨论】:

    标签: git svn git-svn


    【解决方案1】:

    我认为您需要将目录更改为 git repo 的根目录。克隆操作将在当前文件夹中创建一个包含新 git 存储库的子文件夹。 cd 进入这个文件夹,然后尝试 svn fetch 操作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-09-29
      • 2013-08-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-09-20
      相关资源
      最近更新 更多