cd /Users/juzi/Documents/yeep
ls
pwd
?
從遠(yuǎn)程庫(kù)克隆,
git clone git@coding.com:dengjiangzhouEp/YEEP
克隆不上吉懊,報(bào)錯(cuò):
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
查看是否已經(jīng)有了ssh密鑰
如果沒(méi)有密鑰則不會(huì)有此文件夾类茂,有則備份刪除
?
ssh-keygen -t rsa -C "youremail@example.com"
??
??
pwd
查看 文件 路徑
more id_rsa.pub
查看公鑰
git clone https://git.coding.net/dengjiangzhouEp/項(xiàng)目名.git
克隆一個(gè)本地庫(kù)
輸入碼市的 用戶名冗疮,密碼够坐。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