fatal: Could not read from remote repository.以及bash: $: command not found

git clone报错:
fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
需要本地ssh配置
参考
但是输入ssh-keygen -t rsa -C "your Emil"
报错:
bash: $: command not found
试了各种方法,最后用ssh-keygen -o解决
参考
还有一个坑就是,复制ssh记得复制前面的“ssh-rsa ”

你可能感兴趣的:(ssh,git,gitlab,github)