git clone するときのURLいろいろ

git clone するときのURLで混乱したので覚書き

  • 素で ssh 先から
     username@hostname:path
    ※ path は ~username から
    ※ path の前は / でないので注意
  • gitosis の場合
     ssh://git@hostname/path
    ※ path は ~git/repositories から
  • git daemon の場合
     git://hostname/path
    ※ path は --base-path で指定したディレクトリから

Tags: ,

Comments are closed.