Mac下git配置

时间:2023-03-09 21:22:58
Mac下git配置
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