2

ここで Git サーバーをセットアップする手順に従います: https://github.com/msysgit/msysgit/wiki/Setting-up-a-Git-server-on-Windows-using-Git-for-Windows-and- CopSSH、サーバーからリポジトリを複製する最後のステップまで、すべてが正しく機能します。

セットアップの途中で、他のいくつかのエラーに遭遇しましたが、すべて解決しました。彼らです:

  1. ファイルが見つかりません: ファイルを からにlibiconv-2.dllコピーします。libiconv-2.dllgit/binICW/Bin
  2. ファイルgit-receive-pack.exeが見つかりません: で 3 つのソフト リンクを作成してください git-receive-pack.exe。ソースファイルはです。git-upload-pack.exegit-upload-archive.exeICW/Bingit/libexec/git-core/*

サーバーからリポジトリを複製する最後のステップで、次のエラーが発生しました。

このエラーが発生しました:

$ git clone git@127.0.0.1:/cygdrive/d/GitRepo/Test.git
Cloning into 'Test'...
fatal: '/cygdrive/d/GitRepo/Test.git' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

誰でも助けることができますか?ありがとう。

4

1 に答える 1

4

このチュートリアルは、 msysgitからのgit bash セッションで動作することを意図していると思います(こちらのように)。 cygwin セッションではありません (これにより、dll の問題またはソフトリンクの作成が説明されます)。

最後のステップは次のとおりです。

git clone {username}@{servername}:{repodriveletter}:/{repopath}

これは次のようなコマンドを示唆しています:

git clone git@127.0.0.1:/D/GitRepo/Test.git
# or, as the OP found out:
git clone git@127.0.0.1:d:/GitRepo/Test.git

cygwin を使用しないことをお勧めします(こちらで説明されています)。代わりに msysgit を使用してください。

于 2013-07-04T07:04:14.533 に答える