Min's blog

I choose to see the beauties in the world.

导航

git 创建和查看本机ssh

Posted on 2020-01-31 19:59  Min77  阅读(4579)  评论(0编辑  收藏  举报

1. 查看本机是否存在ssh

cd ~/.ssh

2. 创建ssh

ssh-keygen

3. 查看ssh

cat ~/.ssh/id_rsa.pub

4. 添加到远程仓库

5.配置全局usename.useremail

git config --global user.name "xxx"

git config --global user.email "xxx@xxx"