怎么添加mac os git path
1个回答
展开全部
github使用SSH链接,需要设置SSH
1.检查SSH key
cd ~/.ssh
2.备份已有的key,(如果有的话)
mkdir key_backup
mv id_rsa* key_backup
3.生成SSH key
$ ssh-keygen -t rsa -C jonezhang86@gmail.com
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/jiangbo/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
1.检查SSH key
cd ~/.ssh
2.备份已有的key,(如果有的话)
mkdir key_backup
mv id_rsa* key_backup
3.生成SSH key
$ ssh-keygen -t rsa -C jonezhang86@gmail.com
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/jiangbo/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询