Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 使用Github for Windows多次克隆同一存储库_Php_Git_Github_Github For Windows - Fatal编程技术网

Php 使用Github for Windows多次克隆同一存储库

Php 使用Github for Windows多次克隆同一存储库,php,git,github,github-for-windows,Php,Git,Github,Github For Windows,是否可以使用Github for Windows多次克隆同一存储库?我问这个问题的原因是我想多次克隆Laravel框架,对于我正在使用它的每个项目都克隆一次。这是可能的,而且非常简单 在git bash中: git clone <repo> <directory> git clone <repo> <directory_2> ............................. git clone <repo> <direc

是否可以使用Github for Windows多次克隆同一存储库?我问这个问题的原因是我想多次克隆Laravel框架,对于我正在使用它的每个项目都克隆一次。

这是可能的,而且非常简单

在git bash中:

git clone <repo> <directory>
git clone <repo> <directory_2>
.............................
git clone <repo> <directory_N-1>
git clone <repo> <directory_N>
git克隆
git克隆
.............................
git克隆
git克隆
Repo是您的存储库URL,所有这些目录[N]都是您所需的目录名


还有,为什么不将已经克隆的repo复制到另一个目录?

我发现使用Git for Windows可以很容易做到这一点,因为你可以克隆到任何目录,但仍然想知道使用Github for Windows是否可行我不想成为那个家伙,但为什么首先要使用Github for Windows?还有其他方法可以简化Git而不受限制,比如。如果你不能做到这一点,我建议你联系GitHub。他们往往反应迅速,也许你可以在不久的将来解决这个bug/实现这个功能。你应该习惯于这样的想法,即GitHub for Windows只适用于极少数最常见的用例。你想要的只是“普通Git”的一个用例,使用起来非常简单。还有一个备选解决方案,请参见此问题:制作副本不会显示在列表中,无论是本地还是github,因为它具有相同的Git信息。我想这真的不重要,每个复制的回购协议都与其他任何协议相同(假设克隆操作之间没有新的提交)。要在github上的repo列表中显示存储库,您需要分叉它,而不仅仅是克隆。