Mac下git配置

Posted grape1211

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Mac下git配置相关的知识,希望对你有一定的参考价值。

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配置的主要内容,如果未能解决你的问题,请参考以下文章

Mac下git配置

Mac下如何生成ssh key

Mac下如何生成ssh key

mac下.gitconfig配置别名alias

mac下git配置和jenkins打包

mac下使用git随笔