如何定义git远程url

时间:2016-11-01 12:29:56

标签: git git-clone

您好我正在尝试将git存储库克隆到我的本地计算机。我所拥有的只是其他机器上的git存储库。是否有任何命令从本地存储库获取URL?

我只有/ some / path / on / host1 其中包含以下目录/文件

branches  config  description  HEAD  hooks  index  info  logs  objects  packed-refs  refs

我需要在其他linux机器上拥有相同的东西。这是我第一次使用git。

当我cd到/ some / path / on / host1路径并运行

git remote show /some/path/on/host1

我有以下输出

* remote /some/path/on/host1                                               
 Fetch URL: /some/path/on/host1                                           
 Push  URL: /some/path/on/host1                                           
 HEAD branch: master                                                            
 Local refs configured for 'git push':                                          
   V16_3X  pushes to V16_3X  (up to date)                                       
   build64 pushes to build64 (up to date)                                       
   master  pushes to master  (up to date)                        

1 个答案:

答案 0 :(得分:0)

试试这个

ALTER TABLE mantis_user_pref_table 
    ALTER COLUMN redirect_delay INT DEFAULT 0 NOT NULL

git remote -vv