1. 安装git
  2. 打开git bash
  3. 设置全局用户名及邮件
$ git config --global user.name "sea"
$ git config --global user.email "[email protected]"
  1. 生成新的ssh**,**的加密方式为rsa
ssh-****** -t rsa -C "[email protected]"

一路回车生成后,在C:\Users\Administrator.ssh目录,会有一个公钥id_rsa.pub、一个私钥id_rsa两个文件。

  1. 将公钥内容添加到bitbucket中
  • Bitbucket Settings => SSH keys => Add key => 黏贴公钥内容
  1. 测试连接
ssh -T [email protected]
  1. 设置SourceTree的ssh
  • 打开SourceTree => Tools => Options => General => SSH Client Configuration
    SSH Key选择当前用户 .ssh 目录下的 id_rsa 这个私钥。
    GIT - 设置ssh(bitbucket)

相关文章:

  • 2022-02-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-10
  • 2021-09-15
猜你喜欢
  • 2021-08-30
  • 2021-07-09
  • 2022-01-25
  • 2021-08-03
  • 2021-05-16
  • 2021-06-09
相关资源
相似解决方案