Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/24.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
使用现有文件从远程重新创建git存储库_Git_Perforce - Fatal编程技术网

使用现有文件从远程重新创建git存储库

使用现有文件从远程重新创建git存储库,git,perforce,Git,Perforce,我甚至不知道如何开始寻找它,所以我在这里问 我并没有那个么常见的设置,我从github中提取UE4,然后将其添加到Performce depot 现在git回购只存在于一台计算机上,因为我不想将整个.git文件夹添加到Performance。 现在假设我在另一台计算机上创建另一个工作区,并使用perforce提取所有文件。 在另一个工作区中,我想重新创建git repo。它可能不像git init和git pull那么简单,因为我已经尝试过了 请注意,使用git覆盖所有内容是安全的,因为我不会进

我甚至不知道如何开始寻找它,所以我在这里问

我并没有那个么常见的设置,我从github中提取UE4,然后将其添加到Performce depot

现在git回购只存在于一台计算机上,因为我不想将整个.git文件夹添加到Performance。 现在假设我在另一台计算机上创建另一个工作区,并使用perforce提取所有文件。 在另一个工作区中,我想重新创建git repo。它可能不像git init和git pull那么简单,因为我已经尝试过了


请注意,使用git覆盖所有内容是安全的,因为我不会进行任何未合并的更改。

“它可能不像
git init
git pull
”那么简单,以什么方式不安全呢?已经有一些文件不在git repo中(显然),git pull无法覆盖它们。
git init
git stash save
git pull
git stash pop