git 账号和密码管理
2023-06-17 09:35
git
124
0
0
0
标题录入
封面图
**使用ssh协议** 1. 创建 SSH 密钥 ```shell ssh-keygen -t rsa -C "youremail@example.com" ``` 2. 把 SSH 密钥添加到 ssh-agent ```shell eval `ssh-agent -s` ssh-add ~/.ssh/id_rsa ``` 3. 把 SSH 公钥添加到 github 将`.ssh/id_rsa.pub`中的内容复制到github中的ssh keys中 4. 测试 ```shell ssh -T git@github.com ``` **使用https协议** 1. 打开Git Bash,输入以下命令: ```shell git config --global user.name "用户名" git config --global user.email "邮箱" ``` 2. 使用以下命令测试: ```shell git config --global user.name git config --global user.email ```
上一篇:
GIT代码管理: git remote add
下一篇:
MySQL8.0 创建用户及授权
标题录入,一次不能超过6条
怎么运用逻辑思维进行推理?
T:0.007165s,M:244.01 KB
返回顶部
留言
留言
评论