J'ai installé Cygwin et TortoiseGit. Et j'ai créé ssh-key par ssh-key-gen -t rsa
et enregistré la clé publique à ma page GitHub. Lorsque dans le terminal gitbash
, cela a fonctionné, cependant, le terminal Cygwin
a échoué.Comment spécifier le chemin git dans le terminal Cygwin?
// Cygwin
$ git pull
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
J'ai remarqué qu'ils utilisent des git différents. Ensuite, comment puis-je spécifier le chemin git dans Cygwin? Mon OS est Windows 10.
// Cygwin
$ where git
C:\Program Files\Git\cmd\git.exe
$ which git
/cygdrive/c/Program Files/Git/cmd/git
// gitbash (MINGW64)
$ where git
C:\Program Files\Git\mingw64\bin\git.exe
C:\Program Files\Git\cmd\git.exe
$ which git
/mingw64/bin/git
avec cygwin utilise son git. cela facilitera la gestion de la clé ssh créée avec cygwin ssh-key-gen – matzeri