私はgitが初めてです。SSH アクセスできるサーバー上にベア リポジトリを作成しました。それを自分のワークステーションに複製しようとすると、次の 2 つの異なる結果が得られます。
% git clone ssh://me@example.com:git/foo.git
Cloning into 'foo'...
ssh: example.com:git: no address associated with name
fatal: Could not read from remote repository.
しかし、を削除するとssh://
、正常に動作します:
% git clone me@example.com:git/foo.git
Pro Git book によると、これらは同一である必要があります。
何を与える?