Mac 配置SourceTree集成云效

1、背景

工作使用的是自己的笔记本,一个是比较卡,在一个是敏感信息比较多还是使用公司的电脑,但是系统是Mac就很麻烦,在网上找了帖子记录一下

2、配置

  • 打开终端

    ssh-keygen -t rsa #一直回车就行
    cd .ssh
    cat id_rsa.pub #查看公钥,复制

  • 添加到云效

点击头像 ---> 个人设置

把公钥粘贴到文本框,修改标题和生效的时间即可。你的代码仓库要有这个用户的权限

  • 云效这添加完之后设置下电脑

    ssh-add ~/.ssh/id_rsa
    ssh-add -K ~/.ssh/id_rsa将sshkey添加到钥匙串
    cd .ssh
    touch config
    open config#打开config文件,输入以下内容并保存

    Host *
    UseKeychain yes
    AddKeysToAgent yes
    IdentityFile ~/.ssh/id_rsa
    #粘贴进去之后关闭即可

  • 去仓库复制一个ssh连接克隆一个项目试试,点击新建之后选择url克隆即可

相关推荐
kyriewen43 分钟前
别再每次都 Google 了:我整理了前端日常最常踩的 10 个 Git 坑,附速查表
前端·javascript·git
花千烬6 小时前
crictl info 连不上 containerd 怎么办?endpoint、socket 与权限一次查清
云计算
orion5718 小时前
Missing Semester Class1:course overview and introduction of shell
linux
用户120487221611 天前
Linux驱动编译与加载
linux·嵌入式
用户805533698031 天前
Input 子系统架构:Core、Handler、Driver 三层是怎么协作的
linux·嵌入式
用户805533698031 天前
RK-Forge外设系列开篇 - 把板子从「能启动」变成「能用」:Ethernet/SPI/MMC 三个纯接线外设
linux·github·嵌入式
七歌杜金房2 天前
我终于又有了自己的 Linux 电脑
linux·debian·mac
A_Lonely_Cat2 天前
记一次 GitHub 幽灵协作者大清洗:强制重写 Git 历史与穿透 CDN 缓存实践
git·github
tntxia3 天前
linux curl命令详解_curl详解
linux
扛枪的书生3 天前
Linux 网络管理器用法速查
linux