0

我尝试创建一个新的裸 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
4

1 回答 1

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 .

?

于 2012-06-22T12:40:09.557 回答