cd /Users/juzi/Documents/yeep
ls
pwd
从远程库克隆,
git clone git@coding.com:dengjiangzhouEp/YEEP
克隆不上,报错:
ssh: connect to host coding.com port 22: Operation timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
然后配置, SSH 公钥。
cd ~/.ssh
查看是否已经有了ssh密钥
如果没有密钥则不会有此文件夹,有则备份删除
ssh-keygen -t rsa -C "youremail@example.com"
pwd
查看 文件 路径
more id_rsa.pub
查看公钥
git clone https://git.coding.net/dengjiangzhouEp/项目名.git
克隆一个本地库
输入码市的 用户名,密码。OK
Before 20161205
git clone git@coding.com:dengjiangzhouEp/YEEP.git
cd /Users/juzi/.ssh
git remote set-url origin https://git.coding.net:dengjiangzhouEp/YEEP.git