码迷,mamicode.com
首页 > 系统相关 > 详细

Mac下git配置

时间:2018-08-26 18:31:50      阅读:555      评论:0      收藏:0      [点我收藏+]

标签:print   pass   ssh   walk   .com   vat   air   art   finger   

1.下载git
2.配置key
macdeMacBook-Pro:~ mac$ cd ~/.ssh
macdeMacBook-Pro:.ssh mac$ ssh-keygen -t rsa -C "xxx@126.com" 
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/mac/.ssh/id_rsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /Users/mac/.ssh/id_rsa.
Your public key has been saved in /Users/mac/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:1jdGkuZ7BHiwDlpVh/APXvhF2pckQvFxnF4d+GWAlKE grape1211@126.com
The key‘s randomart image is:
+---[RSA 2048]----+
|        +oo*=*==+|
|       . =.====o*|
|      o o E +.=o+|
|     o o * O . + |
|    .   S + B    |
|       .   = .   |
|          . .    |
|           .     |
|                 |
+----[SHA256]-----+
macdeMacBook-Pro:.ssh mac$ ls
id_rsa      id_rsa.pub

Mac下git配置

标签:print   pass   ssh   walk   .com   vat   air   art   finger   

原文地址:https://www.cnblogs.com/grape1211/p/9537763.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!