GitのURL指定を間違えるとCould not resolve hostnameにgitでリモートブランチを追加して、 $ git add remote dev-web ssh://username@dev-web.example.com:/repos/hoge.gitリモートブランチへpushしようとしたら、以下のエラーが。 ssh: Could not resolve hostname dev-web.example.com:: Name or service not known fatal: The remote end hung up unexpectedlyman git-cloneしてみたら、scpのようなフォーマットで書く場合は、下のようにプロトコルを省略すれば良いようだ。 username@dev-web.example.com:/repos/hoge.gitプロトコルを