1. 程式人生 > >Mac下git配置

Mac下git配置

pre git ner code user for save mac erp

1.下載git
2.配置key
macdeMacBook-Pro:~ mac$ cd ~/.ssh
macdeMacBook-Pro:.ssh mac$ ssh-keygen -t rsa -C "[email protected]" 
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 [email protected]
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配置