
不重复登录
- 保存账号密码
git config --global credential.helper store
- ssh
1.获取ssh
ssh-keygen -t rsa -C "xxxxx@xx.com"
cat ~/.ssh/id_rsa.pub
2.在仓库中添加公钥(id_rsa.pub内容)
切换 ssh 获取
```
git remote set-url origin git@github.com:githubname/project.git
```

git config --global credential.helper store
1.获取ssh
ssh-keygen -t rsa -C "xxxxx@xx.com"
cat ~/.ssh/id_rsa.pub
2.在仓库中添加公钥(id_rsa.pub内容)
```
git remote set-url origin git@github.com:githubname/project.git
```