Isso só aconteceu comigo. Para corrigir isso, eu apaguei o c: .gitconfig, e quando eu corri o git clone <project>
, funcionou bem.
Estou sob o Win7 e tentando git clone
rep no disco Z:
.
O disco Z:
é enviado via SFTP (conectando-se ao servidor local do FreeBSD) usando o utilitário SFTP Net Drive Free
.
Quando estou tentando git clone
para meu disco C:
local - tudo funciona bem, mas quando estou tentando git clone
para disco Z:
git informa sobre erros:
cd z:
$ git clone [email protected]: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.
Eu tentei clonar algum repositório público do 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
mas o mesmo erro com 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.
Alguma ideia? Obrigado antecipadamente!
Isso só aconteceu comigo. Para corrigir isso, eu apaguei o c: .gitconfig, e quando eu corri o git clone <project>
, funcionou bem.