MAC使用Git

1、生成SSH Key, 添加到服务器的SSH Keys(通过网页可输入)中,都是公司内网,私有git,没有用github,用的是免密码方式;


2、安装git命令行工具,第一次提示错误;

The authenticity of host '192.168.3.13 (192.168.3.13)' can't be established.
RSA key fingerprint is SHA256:EkzKFH/5Ij1/24Vn.
Are you sure you want to continue connecting (yes/no)? ^C

解决办法:

ssh  -o StrictHostKeyChecking=no 192.168.3.13


3、执行git clone [email protected]:newtelcom/newtelcom-app.git;


4、从dev分支取,执行git clone -b dev [email protected]:newtelcom/newtelcom-app.git;

你可能感兴趣的:(Git)