Git:如何从单个.git文件夹恢复存储库

nic*_*oga 2 git

我将手放在.git崩溃的GitLab服务器上的文件夹中。我需要从这个单独的.git文件夹中还原此仓库。这可能吗?

Kev*_*ith 5

只需从.git文件夹克隆

git clone .git my-repo
Run Code Online (Sandbox Code Playgroud)