Я под Win7 и пытаюсь git clone
представитель моего Z:
диск. Диск Z:
передается через SFTP (подключение к локальному серверу FreeBSD) с использованием SFTP Net Drive Free
утилита.
Когда я пытаюсь git clone
в мой местный C:
диск - все нормально работает, но когда пытаюсь git clone
на диск Z:
git сообщает об ошибках:
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.
Я пытался git клонировать публичное репо из 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.
Любые идеи? Заранее спасибо!
Это случилось со мной. Чтобы исправить это, я удалил c: .gitconfig, и когда я запустил git clone <project>
.. это сработало нормально.