错误:克隆一个裸git存储库

时间:2012-06-22 12:31:05

标签: git dropbox git-bare

我尝试创建一个新的裸git存储库,但是我收到了这个错误:

Max:Git-Projekte max$ git clone --bare . ~/Dropbox/Git-Projekte/Mainpage.git
Cloning into bare repository '/Users/max/Dropbox/Git-Projekte/Mainpage'...
fatal: failed to open '/Users/max/Dropbox/Git-Projekte/./objects': No such file or directory

1 个答案:

答案 0 :(得分:2)

我不确定您是否以正确的方式使用该命令:

git-clone的人说:

“将存储库克隆到新创建的目录”

命令是:

git clone [--template=<template_directory>]
      [-l] [-s] [--no-hardlinks] [-q] [-n] [--bare] [--mirror]
      [-o <name>] [-b <name>] [-u <upload-pack>] [--reference <repository>]
      [--depth <depth>] [--recursive] [--] <repository> [<directory>]

所以也许你应该:

git clone --bare ~/Dropbox/Git-Projekte/Mainpage.git .

相关问题