git cmd list 5

来源:互联网 发布:对阿里云的理解 编辑:程序博客网 时间:2024/05/01 08:12

查看远程库

$ git remote                                                -- 列出所有远程主机$ git remote -v                                             -- 可以参看远程主机的网址$ git remote show <主机名>                                  -- 查看该主机的详细信息

克隆远程库

$ git clone ssh://user@domain.com/repo.git                  -- Clone an existing repository

关联远程库

$ git remote add origin ssh://user@domain.com/repo.git      -- 关联远程库
0 0