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克隆即可

相关推荐
笨笨饿10 小时前
32_复变函数在工程中实际应用区别于联系
linux·服务器·c语言·人工智能·单片机·算法·学习方法
Bert.Cai10 小时前
Linux pwd命令详解
linux·运维
Wasim40410 小时前
【Linux】网络命令
linux·网络安全·linux网络命令·linux网络安全入门
zh_xuan10 小时前
Android Paging 3实现分页加载
android·git·github·paging 3
BUG_MeDe10 小时前
从Json对象中提取某个对象的一点注意--libjson-c
linux·json
坚持就完事了11 小时前
Linux的which命令
linux·运维·服务器
skywalk816311 小时前
kitto_plus报错:AttributeError: module ‘kotti_plus‘ has no attribute ‘security‘
linux·开发语言·python
和小潘一起学AI11 小时前
centOS安装neo4j
linux·运维·服务器
HealthScience11 小时前
H20服务器多卡运行有错误gpu_partition ,tmux错误
linux·运维·服务器
_Emma_11 小时前
【Raspberry PI】Raspberry Pi HEVC (H.265) 硬件解码器
linux·驱动开发·视频编解码