Неспособный мерзавцу клонируются к диску, изрекаемому как диск SFTP

Я нахожусь под Win7 и пробующий к git clone представитель к моему Z: диск. Диск Z: изрекается через SFTP (соединяющийся с локальным сервером FreeBSD) использование SFTP Net Drive Free утилита.

Когда я пытаюсь git clone к моему локальному C: диск - все хорошо работает, но когда я пытаюсь git clone к диску Z: мерзавец сообщает об ошибках:

cd z:
$ git clone git@xxx.xxx.xxx.xxx:rep.git
Cloning into 'rep'...
error: could not commit config file z:/rep/.git/config
error: could not commit config file z:/rep/.git/config
error: could not commit config file z:/rep/.git/config
error: could not commit config file z:/rep/.git/config
error: could not commit config file z:/rep/.git/config
error: could not commit config file z:/rep/.git/config
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Я попробовал к клону мерзавца некоторую общественность repo от GitHub:

$ cd c:
$ git clone https://github.com/nicolasff/phpredis.git
Cloning into 'phpredis'...
remote: Counting objects: 3703, done.
remote: Compressing objects: 100% (1578/1578), done.
remote: Total 3703 (delta 2286), reused 3512 (delta 2114)
Receiving objects: 100% (3703/3703), 1.43 MiB | 264.00 KiB/s, done.
Resolving deltas: 100% (2286/2286), done.
Checking connectivity... done

но та же ошибка с Z:

$ cd z:
$ git clone https://github.com/nicolasff/phpredis.git
Cloning into 'phpredis'...
error: could not commit config file z:/phpredis/.git/config
error: could not commit config file z:/phpredis/.git/config
error: could not commit config file z:/phpredis/.git/config
error: could not commit config file z:/phpredis/.git/config
error: could not commit config file z:/phpredis/.git/config
error: could not commit config file z:/phpredis/.git/config
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Какие-либо идеи?Заранее спасибо!

1
задан 22 October 2013 в 16:41
1 ответ

Это только что случилось со мной. Чтобы исправить это, я удалил c: .gitconfig, и когда я запустил git clone .. он работал нормально.

0
ответ дан 4 December 2019 в 08:59

Теги

Похожие вопросы