美文网首页
sourcetree新电脑ssh绑定github

sourcetree新电脑ssh绑定github

作者: 苹果咏 | 来源:发表于2020-02-20 23:30 被阅读0次

把C:\Users\Administrator.ssh里面东西都删了
运行

ssh-keygen -t rsa -b 4096 -C "你的邮箱"

生成新的rsa文件
打开id_rsa.pub,将里面的值复制到github的ssh key当中
如果使用sourcetree,同样,在工具》选项当中的SSH要指向C:\Users\Administrator.ssh
克隆github地址记得用ssh地址

sourcetree历史版本
https://www.sourcetreeapp.com/download-archives
不行的话,建议安装2.6.10版本,如果安装登录不了,找到C:Users\Administrator\AppData\Local\Atlassian\SourceTree\目录,新建accounts.json文件复制进去

[{
    "$id": "1",
    "$type": "SourceTree.Api.Host.Identity.Model.IdentityAccount, SourceTree.Api.Host.Identity",
    "Authenticate": true,
    "HostInstance": {
        "$id": "2",
        "$type": "SourceTree.Host.Atlassianaccount.AtlassianAccountInstance, SourceTree.Host.AtlassianAccount",
        "Host": {
            "$id": "3",
            "$type": "SourceTree.Host.Atlassianaccount.AtlassianAccountHost, SourceTree.Host.AtlassianAccount",
            "Id": "atlassian account"
        },
        "BaseUrl": "https://id.atlassian.com/"
    },
    "Credentials": {
        "$id": "4",
        "$type": "SourceTree.Model.BasicAuthCredentials, SourceTree.Api.Account",
        "Username": "",
        "Email": null
    },
    "IsDefault": false
}]

相关文章

  • sourcetree新电脑ssh绑定github

    把C:\Users\Administrator.ssh里面东西都删了运行 生成新的rsa文件打开id_rsa.pu...

  • github

    注册github帐号 安装git(不是github) 绑定用户 生成ssh key 为github绑定ssh(公钥...

  • 创建github远程仓库并绑定本地项目

    1、注册github新建仓库 2、配置ssh秘钥 这个操作就是让我们的电脑和github进行一个绑定验证 1. 右...

  • 一台电脑绑定两个github帐号教程

    思路 ssh 方式链接到 Github,需要唯一的公钥,如果想同一台电脑绑定两个Github 帐号,需要两个条件:...

  • Git 快速使用

    利用 SSH 完成 Git 与 GitHub 的绑定 在 GitHub 上,一般都是通过 SSH 来授权的,而且大...

  • SSH 管理

    SSH管理,一台设备对应一个平台绑定进行绑定 比如github上 一台电脑,管理对应一个公钥,如果需要多个账号在同...

  • win10下Bad owner or permissions o

    在一次迁移新电脑时,需要将旧电脑上面的SSH密钥文件转移到新电脑上,并且可以链接上gitee,github等,使用...

  • Sourcetree添加github.com ssh

    Sourcetree添加: 1.直接通过sourcetree添加账号,创建ssh。(添加之前最好是清除.ssh文件...

  • 配置GitHub SSH密钥

    1、有GitHub账号2、检查本机电脑是否有SSH密钥:ls -al ~/.ssh3、如果没有重新生成一个新的SS...

  • Mac版本 SourceTree 配置github ssh

    添加账户: 连接账号 3.创建密钥 执行ssh-add ~/.ssh/id_rsa 将sshkey添加到sourc...

网友评论

      本文标题:sourcetree新电脑ssh绑定github

      本文链接:https://www.haomeiwen.com/subject/xrfqqhtx.html